chore: model file components for updating

This commit is contained in:
jialin
2025-05-27 19:45:24 +08:00
parent 894dd1e353
commit 034a54bf4b
9 changed files with 54 additions and 205 deletions
@@ -75,7 +75,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
modelSourceMap.huggingface_value,
modelSourceMap.modelscope_value
];
console.log('hasLinuxWorker---------:', hasLinuxWorker);
const [isEvaluating, setIsEvaluating] = useState<boolean>(false);
const [current, setCurrent] = useState<string>('');
const currentRef = useRef<string>('');
@@ -448,7 +448,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
return () => {
axiosTokenRef.current?.abort?.();
checkTokenRef.current?.cancel?.();
// workerRef.current?.terminate();
if (timer.current) {
clearTimeout(timer.current);
}