tiny fix
This commit is contained in:
1 parent
228dd1739e
commit
3af57795dd
12 files changed
+91
-69
No files matched your search
@@ -109,15 +109,15 @@ def get_model_path(model_name: str) -> str:
|
||||
use_modelscope()
|
||||
and path_dict.get(DownloadSource.MODELSCOPE)
|
||||
and model_path == path_dict.get(DownloadSource.DEFAULT)
|
||||
): # replace path
|
||||
): # replace hf path with ms path
|
||||
model_path = path_dict.get(DownloadSource.MODELSCOPE)
|
||||
|
||||
if (
|
||||
use_openmind()
|
||||
and path_dict.get(DownloadSource.MODELERS)
|
||||
and path_dict.get(DownloadSource.OPENMIND)
|
||||
and model_path == path_dict.get(DownloadSource.DEFAULT)
|
||||
): # replace path
|
||||
model_path = path_dict.get(DownloadSource.MODELERS)
|
||||
): # replace hf path with om path
|
||||
model_path = path_dict.get(DownloadSource.OPENMIND)
|
||||
|
||||
return model_path
|
||||
|
||||
|
||||
Reference in new issue
Block a user