mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
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:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user