fix hub case issue

This commit is contained in:
mulin.lyh
2024-05-23 15:36:29 +08:00
parent 49fe172c5f
commit b2c00fcdb0

View File

@@ -70,6 +70,7 @@ def snapshot_download(model_id: str,
if isinstance(cache_dir, Path):
cache_dir = str(cache_dir)
temporary_cache_dir = os.path.join(cache_dir, 'temp')
os.makedirs(temporary_cache_dir, exist_ok=True)
group_or_owner, name = model_id_to_group_owner_name(model_id)
name = name.replace('.', '___')