fix: draft download progress should not show
This commit is contained in:
@@ -210,7 +210,7 @@ const RenderWorkerDownloading = (props: {
|
|||||||
!severList.length ||
|
!severList.length ||
|
||||||
backend === backendOptionsMap.llamaBox;
|
backend === backendOptionsMap.llamaBox;
|
||||||
|
|
||||||
if (isWorkerNotDownloading && !instanceData.draft_model_download_progress) {
|
if (isWorkerNotDownloading) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
@@ -239,10 +239,8 @@ const RenderWorkerDownloading = (props: {
|
|||||||
size={16}
|
size={16}
|
||||||
strokeColor="var(--ant-color-success)"
|
strokeColor="var(--ant-color-success)"
|
||||||
percent={
|
percent={
|
||||||
instanceData.draft_model_download_progress ||
|
|
||||||
_.find(severList, (item: any) => item.download_progress < 100)
|
_.find(severList, (item: any) => item.download_progress < 100)
|
||||||
?.download_progress ||
|
?.download_progress || 0
|
||||||
0
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user