Update app.py
Browse filesFix Select renaming to Dropdown
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def tts_interface(input_text, voice):
|
|
| 9 |
|
| 10 |
iface = gr.Interface(
|
| 11 |
fn=tts_interface,
|
| 12 |
-
inputs=[gr.inputs.Textbox(lines=5), gr.inputs.
|
| 13 |
outputs=gr.outputs.Audio(type="filepath"),
|
| 14 |
title="Text-to-Speech Converter",
|
| 15 |
description="Enter a text and get its spoken version as an MP3 file."
|
|
|
|
| 9 |
|
| 10 |
iface = gr.Interface(
|
| 11 |
fn=tts_interface,
|
| 12 |
+
inputs=[gr.inputs.Textbox(lines=5), gr.inputs.Dropdown(choices=[(k, v) for k, v in tts_langs.items()])],
|
| 13 |
outputs=gr.outputs.Audio(type="filepath"),
|
| 14 |
title="Text-to-Speech Converter",
|
| 15 |
description="Enter a text and get its spoken version as an MP3 file."
|