gyroing commited on
Commit
7e5c84b
1 Parent(s): f6a94c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,8 +15,8 @@ def synthesize_speech(text):
15
  if nsfw_result[0]['label'] == 'NSFW':
16
  return "NSFW content detected. Cannot process.", None
17
 
18
- model_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="speaker_00_model.onnx")
19
- config_path = hf_hub_download(repo_id="aigmixer/speaker_00", filename="speaker_00_model.onnx.json")
20
  voice = PiperVoice.load(model_path, config_path)
21
 
22
  # Create an in-memory buffer for the WAV file
 
15
  if nsfw_result[0]['label'] == 'NSFW':
16
  return "NSFW content detected. Cannot process.", None
17
 
18
+ model_path = hf_hub_download(repo_id="gyroing/Persian-Piper-Model-gyro", filename="fa_IR-gyro-meduim.onnx")
19
+ config_path = hf_hub_download(repo_id="gyroing/Persian-Piper-Model-gyro/", filename="fa_IR-gyro-meduim.onnx.json")
20
  voice = PiperVoice.load(model_path, config_path)
21
 
22
  # Create an in-memory buffer for the WAV file