Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def tts(text: str):
|
|
29 |
#model_dir = BASE_DIR.format("male" if voice == "Male" else "female")
|
30 |
|
31 |
# synthesize
|
32 |
-
synthesizer = Synthesizer(f"{Model_DIR}/model.pth", f"{
|
33 |
wavs = synthesizer.tts(text)
|
34 |
|
35 |
# return output
|
|
|
29 |
#model_dir = BASE_DIR.format("male" if voice == "Male" else "female")
|
30 |
|
31 |
# synthesize
|
32 |
+
synthesizer = Synthesizer(f"{Model_DIR}/model.pth", f"{Model_DIR}/config.json")
|
33 |
wavs = synthesizer.tts(text)
|
34 |
|
35 |
# return output
|