harp-dev commited on
Commit
3d7bdf6
·
verified ·
1 Parent(s): 8455b2b

Pin the weights' revision, and label the output as the speech it holds.

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -42,6 +42,7 @@ def download_weights():
42
  print("Downloading model weights from HuggingFace...")
43
  snapshot_download(
44
  repo_id=repo_id,
 
45
  local_dir=weights_dir,
46
  local_dir_use_symlinks=False
47
  )
@@ -245,7 +246,7 @@ if __name__ == "__main__":
245
  info="Increase this for a stronger likeness to the reference voice."
246
  )
247
 
248
- output_audio = gr.Audio(type="filepath", label="Generated Audio").set_info((
249
  "The text spoken in the reference voice."
250
  ))
251
 
 
42
  print("Downloading model weights from HuggingFace...")
43
  snapshot_download(
44
  repo_id=repo_id,
45
+ revision="b3a2c297eea319931ee985751f117f866085d0c5",
46
  local_dir=weights_dir,
47
  local_dir_use_symlinks=False
48
  )
 
246
  info="Increase this for a stronger likeness to the reference voice."
247
  )
248
 
249
+ output_audio = gr.Audio(type="filepath", label="Synthesized Speech").set_info((
250
  "The text spoken in the reference voice."
251
  ))
252