MAKHLWF commited on
Commit
8df2ab4
·
1 Parent(s): bb10bba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Textbox(default="Enter text here...", label="Input Text"),
22
- outputs=gr.outputs.Audio(label="Voice"), # Updated to use 'numpy' type by default
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",