mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
fix path contatenation to be windows compatabile
This commit is contained in:
@@ -233,7 +233,7 @@ def _snapshot_download(
|
||||
if repo_type == REPO_TYPE_MODEL:
|
||||
directory = os.path.abspath(
|
||||
local_dir) if local_dir is not None else os.path.join(
|
||||
system_cache, repo_id)
|
||||
system_cache, *repo_id.split('/'))
|
||||
print(f'Downloading Model to directory: {directory}')
|
||||
revision_detail = _api.get_valid_revision_detail(
|
||||
repo_id, revision=revision, cookies=cookies)
|
||||
|
||||
Reference in New Issue
Block a user