lengyue233 commited on
Commit
89518a7
1 Parent(s): 12b4214

fix download path

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import subprocess as sp
2
  import os
3
- from huggingface_hub import hf_hub_download
4
 
5
  # Download if not exists
6
  os.makedirs("checkpoints", exist_ok=True)
7
- hf_hub_download("fishaudio/fish-speech-1", "./checkpoints/fish-speech-1")
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