fix(style): do not display draft model after done
This commit is contained in:
@@ -86,7 +86,7 @@ const NoResult: React.FC<
|
||||
description={
|
||||
<Description>
|
||||
{!hasFilters && (
|
||||
<Typography.Text style={{ fontSize: '18px', fontWeight: 500 }}>
|
||||
<Typography.Text style={{ fontSize: '16px', fontWeight: 500 }}>
|
||||
{props.title}
|
||||
</Typography.Text>
|
||||
)}
|
||||
|
||||
@@ -210,10 +210,11 @@ const RenderWorkerDownloading = (props: {
|
||||
!severList.length ||
|
||||
backend === backendOptionsMap.llamaBox;
|
||||
|
||||
const isDragftModelNotDownloading =
|
||||
instanceData.draft_model_download_progress <= 0;
|
||||
const isDraftModeNotDownloading =
|
||||
!instanceData.draft_model_download_progress ||
|
||||
instanceData.draft_model_download_progress >= 100;
|
||||
|
||||
if (isWorkerNotDownloading && isDragftModelNotDownloading) {
|
||||
if (isWorkerNotDownloading && isDraftModeNotDownloading) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user