Spaces:
Runtime error
Runtime error
lengyue233
commited on
Commit
•
89518a7
1
Parent(s):
12b4214
fix download path
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import subprocess as sp
|
2 |
import os
|
3 |
-
from huggingface_hub import
|
4 |
|
5 |
# Download if not exists
|
6 |
os.makedirs("checkpoints", exist_ok=True)
|
7 |
-
|
8 |
|
9 |
print("All checkpoints downloaded")
|
10 |
|
|
|
1 |
import subprocess as sp
|
2 |
import os
|
3 |
+
from huggingface_hub import snapshot_download
|
4 |
|
5 |
# Download if not exists
|
6 |
os.makedirs("checkpoints", exist_ok=True)
|
7 |
+
snapshot_download(repo_id="fishaudio/fish-speech-1", local_dir="./checkpoints/fish-speech-1")
|
8 |
|
9 |
print("All checkpoints downloaded")
|
10 |
|