zetabyte commited on
Commit
7d66dc0
1 Parent(s): a829988

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -10,10 +10,11 @@ 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=CoquiTTS.langs["en"]["sentence"], max_lines=3),
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()
 
 
10
  coquiTTS.get_tts(text, fp, speaker = {"language" : language})
11
  return fp.name
12
 
13
+ inputs = [gr.Textbox(label="Input", value="Hello, world!", max_lines=3),
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
+