Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,11 +10,10 @@ def tts(text: str, language: str):
|
|
10 |
coquiTTS.get_tts(text, fp, speaker = {"language" : language})
|
11 |
return fp.name
|
12 |
|
13 |
-
inputs = [gr.Textbox(label="Input", value="
|
14 |
gr.Radio(label="Language", choices=LANGUAGES, value="en")]
|
15 |
outputs = gr.Audio(label="Output")
|
16 |
|
17 |
demo = gr.Interface(fn=tts, inputs=inputs, outputs=outputs)
|
18 |
|
19 |
-
demo.launch()
|
20 |
-
|
|
|
10 |
coquiTTS.get_tts(text, fp, speaker = {"language" : language})
|
11 |
return fp.name
|
12 |
|
13 |
+
inputs = [gr.Textbox(label="Input", value="", max_lines=10),
|
14 |
gr.Radio(label="Language", choices=LANGUAGES, value="en")]
|
15 |
outputs = gr.Audio(label="Output")
|
16 |
|
17 |
demo = gr.Interface(fn=tts, inputs=inputs, outputs=outputs)
|
18 |
|
19 |
+
demo.launch()
|
|