Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def synthesize_speech(text):
|
|
30 |
return error_audio_data, "NSFW content detected. Cannot process."
|
31 |
|
32 |
model_path = hf_hub_download(repo_id="DLI-SLQ/speaker_01234", filename="speaker__01234_model.onnx")
|
33 |
-
config_path = hf_hub_download(repo_id="DLI-SLQ/speaker_01234", filename="
|
34 |
|
35 |
voice = PiperVoice.load(model_path, config_path)
|
36 |
|
|
|
30 |
return error_audio_data, "NSFW content detected. Cannot process."
|
31 |
|
32 |
model_path = hf_hub_download(repo_id="DLI-SLQ/speaker_01234", filename="speaker__01234_model.onnx")
|
33 |
+
config_path = hf_hub_download(repo_id="DLI-SLQ/speaker_01234", filename="speaker__01234_model.onnx.json")
|
34 |
|
35 |
voice = PiperVoice.load(model_path, config_path)
|
36 |
|