diff --git a/xinference/web/ui/src/scenes/launch_model/modelCard.js b/xinference/web/ui/src/scenes/launch_model/modelCard.js index 56dc93b8be..1e781c2179 100644 --- a/xinference/web/ui/src/scenes/launch_model/modelCard.js +++ b/xinference/web/ui/src/scenes/launch_model/modelCard.js @@ -363,7 +363,7 @@ const ModelCard = ({ const modelDataWithID = modelType === 'LLM' ? modelDataWithID_LLM : modelDataWithID_other - console.log('modelDataWithID----', modelDataWithID); + console.log('modelDataWithID----', modelDataWithID) // First fetcher request to initiate the model fetchWrapper @@ -617,7 +617,13 @@ const ModelCard = ({ } setCustomArr(customData) - if (model_uid || request_limits || worker_ip || gpu_idx?.join(',') || download_hub) + if ( + model_uid || + request_limits || + worker_ip || + gpu_idx?.join(',') || + download_hub + ) setIsOther(true) if ( @@ -1347,31 +1353,34 @@ const ModelCard = ({ - - (Optional) Download_hub - - + + (Optional) Download_hub + + setIsPeftModelConfig(!isPeftModelConfig)} >
- - {isPeftModelConfig ? : } + + {isPeftModelConfig ? : }
setDownloadHub(e.target.value)} label="(Optional) Download_hub" > - {["huggingface", "modelscope"].map(item => { + {['huggingface', 'modelscope'].map((item) => { return ( {item}