Fixed huggingface url (#2667)

### What problem does this PR solve?
Fixed huggingface url. Close #2665

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Zhichang Yu
2024-09-29 20:38:11 +08:00
committed by GitHub
parent 9081150c2c
commit 5b4b252895
4 changed files with 13 additions and 13 deletions

View File

@ -14,7 +14,7 @@ repos = [
def download_model(repo_id):
local_dir = os.path.join("huggingface.io", repo_id)
local_dir = os.path.join("huggingface.co", repo_id)
os.makedirs(local_dir, exist_ok=True)
snapshot_download(repo_id=repo_id, local_dir=local_dir)