MAKHLWF commited on
Commit
b7387a3
·
1 Parent(s): acf183c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,11 +19,11 @@ def text_to_speech(text):
19
  iface = gr.Interface(
20
  fn=text_to_speech,
21
  inputs=gr.inputs.Textbox(default="Enter text here...", label="Input Text"),
22
- outputs=gr.outputs.Audio(type="numpy", label="Voice"),
23
  title="Text to Speech",
24
  description="Enter text and click 'Generate' to convert it to speech.",
25
- theme="blue", # Set the theme to blue
26
- live=False, # Set live to False to use a "Generate" button
27
  )
28
 
29
  iface.launch()
 
19
  iface = gr.Interface(
20
  fn=text_to_speech,
21
  inputs=gr.inputs.Textbox(default="Enter text here...", label="Input Text"),
22
+ outputs=gr.outputs.Audio(type="bytes", label="Voice", mime="audio/mpeg"), # Specify content type
23
  title="Text to Speech",
24
  description="Enter text and click 'Generate' to convert it to speech.",
25
+ theme="blue",
26
+ live=False,
27
  )
28
 
29
  iface.launch()