fix modelconfig

This commit is contained in:
mi804
2025-07-30 18:44:17 +08:00
parent aef982a53c
commit 8c558b3526

View File

@@ -178,9 +178,9 @@ class ModelConfig:
is_folder = False
# Download
if self.local_model_path is None:
self.local_model_path = "./models"
if not skip_download:
if self.local_model_path is None:
self.local_model_path = "./models"
downloaded_files = glob.glob(self.origin_file_pattern, root_dir=os.path.join(self.local_model_path, self.model_id))
snapshot_download(
self.model_id,