Commit d3b3ea0f authored by myhloli's avatar myhloli
Browse files

fix: simplify path construction in models_download_utils.py

parent 0eb651e3
...@@ -21,7 +21,7 @@ def auto_download_and_get_model_root_path(relative_path: str, repo_mode='pipelin ...@@ -21,7 +21,7 @@ def auto_download_and_get_model_root_path(relative_path: str, repo_mode='pipelin
root_path = local_models_config.get(repo_mode, None) root_path = local_models_config.get(repo_mode, None)
if not root_path: if not root_path:
raise ValueError(f"Local path for repo_mode '{repo_mode}' is not configured.") raise ValueError(f"Local path for repo_mode '{repo_mode}' is not configured.")
return os.path.join(root_path, relative_path.strip('/')) return root_path
# 建立仓库模式到路径的映射 # 建立仓库模式到路径的映射
repo_mapping = { repo_mapping = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment