tommy24 commited on
Commit
8970db3
·
1 Parent(s): 8c8cf04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def function1(prompt):
21
  sound = AudioSegment.from_wav(file_name)
22
  mp3_file = "speech.mp3"
23
  sound.export(mp3_file, format="mp3")
24
- return mp3_file
25
 
26
- iface = gr.Interface(fn=function1, inputs="text", outputs="text")
27
  iface.launch()
 
21
  sound = AudioSegment.from_wav(file_name)
22
  mp3_file = "speech.mp3"
23
  sound.export(mp3_file, format="mp3")
24
+ return data
25
 
26
+ iface = gr.Interface(fn=function1, inputs="text", outputs=[gr.Audio(label="Generated Speech", type="numpy")])
27
  iface.launch()