File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed
xinference/web/ui/src/scenes/launch_model Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -1347,19 +1347,31 @@ const ModelCard = ({
1347
1347
</ p >
1348
1348
) }
1349
1349
</ div >
1350
- { modelData . dimensions && (
1350
+ { ( modelData . dimensions || modelData . max_tokens ) && (
1351
1351
< div className = "iconRow" >
1352
1352
< div className = "iconItem" >
1353
- < span className = "boldIconText" > { modelData . dimensions } </ span >
1354
- < small className = "smallText" >
1355
- { t ( 'launchModel.dimensions' ) }
1356
- </ small >
1353
+ { modelData . dimensions && (
1354
+ < >
1355
+ < span className = "boldIconText" >
1356
+ { modelData . dimensions }
1357
+ </ span >
1358
+ < small className = "smallText" >
1359
+ { t ( 'launchModel.dimensions' ) }
1360
+ </ small >
1361
+ </ >
1362
+ ) }
1357
1363
</ div >
1358
1364
< div className = "iconItem" >
1359
- < span className = "boldIconText" > { modelData . max_tokens } </ span >
1360
- < small className = "smallText" >
1361
- { t ( 'launchModel.maxTokens' ) }
1362
- </ small >
1365
+ { modelData . max_tokens && (
1366
+ < >
1367
+ < span className = "boldIconText" >
1368
+ { modelData . max_tokens }
1369
+ </ span >
1370
+ < small className = "smallText" >
1371
+ { t ( 'launchModel.maxTokens' ) }
1372
+ </ small >
1373
+ </ >
1374
+ ) }
1363
1375
</ div >
1364
1376
</ div >
1365
1377
) }
You can’t perform that action at this time.
0 commit comments