Update app.py
Browse filesfix bug with Audio output to be a filepath
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def tts_interface(input_text):
|
|
| 9 |
iface = gr.Interface(
|
| 10 |
fn=tts_interface,
|
| 11 |
inputs=gr.inputs.Textbox(lines=5),
|
| 12 |
-
outputs=gr.outputs.Audio(),
|
| 13 |
title="Text-to-Speech Converter",
|
| 14 |
description="Enter a text and get its spoken version as an MP3 file."
|
| 15 |
)
|
|
|
|
| 9 |
iface = gr.Interface(
|
| 10 |
fn=tts_interface,
|
| 11 |
inputs=gr.inputs.Textbox(lines=5),
|
| 12 |
+
outputs=gr.outputs.Audio(type="filepath"),
|
| 13 |
title="Text-to-Speech Converter",
|
| 14 |
description="Enter a text and get its spoken version as an MP3 file."
|
| 15 |
)
|