chore: modelscope downloading state

This commit is contained in:
jialin
2024-09-29 18:58:12 +08:00
parent 69ffdd4604
commit 458f467985
9 changed files with 44 additions and 29 deletions
@@ -254,9 +254,17 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
: undefined
}
statusValue={{
status: status[item.state] as any,
status:
item.state === InstanceStatusMap.Downloading &&
item.download_progress === 100
? status[InstanceStatusMap.Running]
: (status[item.state] as any),
text: InstanceStatusMapValue[item.state],
message: item.state_message
message:
item.state === InstanceStatusMap.Downloading &&
item.download_progress === 100
? ''
: item.state_message
}}
></StatusTag>
)}