Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,8 @@ def text_to_speech(text):
|
|
| 18 |
|
| 19 |
iface = gr.Interface(
|
| 20 |
fn=text_to_speech,
|
| 21 |
-
inputs=gr.
|
| 22 |
-
outputs=gr.
|
| 23 |
title="Text to Speech",
|
| 24 |
description="Enter text and click 'Generate' to convert it to speech.",
|
| 25 |
theme="blue",
|
|
|
|
| 18 |
|
| 19 |
iface = gr.Interface(
|
| 20 |
fn=text_to_speech,
|
| 21 |
+
inputs=gr.Interface.Textbox(default="Enter text here...", label="Input Text"),
|
| 22 |
+
outputs=gr.Interface.Audio(label="Voice"), # Use the 'numpy' type by default
|
| 23 |
title="Text to Speech",
|
| 24 |
description="Enter text and click 'Generate' to convert it to speech.",
|
| 25 |
theme="blue",
|