aigmixer commited on
Commit
a3cf651
1 Parent(s): a143c6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ from huggingface_hub import hf_hub_download
6
  from piper import PiperVoice
7
 
8
  def synthesize_speech(text):
9
- model_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="resolve/main/speaker_00_model.onnx")
10
- config_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="resolve/main/speaker_00_model.onnx.json")
11
  voice = PiperVoice.load(model_path, config_path)
12
 
13
  # Create an in-memory buffer for the WAV file
 
6
  from piper import PiperVoice
7
 
8
  def synthesize_speech(text):
9
+ model_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="speaker_00_model.onnx")
10
+ config_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="speaker_00_model.onnx.json")
11
  voice = PiperVoice.load(model_path, config_path)
12
 
13
  # Create an in-memory buffer for the WAV file