Spaces:
Runtime error
Runtime error
Commit
·
526c607
1
Parent(s):
d22959a
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from TTS.config import load_config
|
|
3 |
from TTS.utils.manage import ModelManager
|
4 |
from TTS.utils.synthesizer import Synthesizer
|
5 |
|
6 |
-
model_path = "./model/model.
|
7 |
config_path = "./model/config.json"
|
8 |
|
9 |
synthesizer = Synthesizer(
|
@@ -28,5 +28,5 @@ def run_tts(text):
|
|
28 |
# return "Hello " + name + "!!"
|
29 |
|
30 |
|
31 |
-
|
32 |
-
|
|
|
3 |
from TTS.utils.manage import ModelManager
|
4 |
from TTS.utils.synthesizer import Synthesizer
|
5 |
|
6 |
+
model_path = "./model/model.pth"
|
7 |
config_path = "./model/config.json"
|
8 |
|
9 |
synthesizer = Synthesizer(
|
|
|
28 |
# return "Hello " + name + "!!"
|
29 |
|
30 |
|
31 |
+
iface = gr.Interface(fn=run_tts, inputs="text", outputs="audio")
|
32 |
+
iface.launch()
|