dcolish commited on
Commit
31b4486
·
1 Parent(s): 7066f31

Update app.py

Browse files

fix bug with Audio output to be a filepath

Files changed (1) hide show
  1. app.py +1 -1
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
  )