Sayiqa commited on
Commit
6b5e201
Β·
verified Β·
1 Parent(s): 112de94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def process_audio(audio_file):
80
 
81
  # Set up Gradio interface
82
  iface = gr.Interface(fn=process_audio,
83
- inputs=gr.Audio(type="file"), # Use "file" or "microphone" as needed
84
  outputs=gr.Image(type="url"),
85
  live=True,
86
  title="Speech-to-Text to Image Generator")
 
80
 
81
  # Set up Gradio interface
82
  iface = gr.Interface(fn=process_audio,
83
+ inputs=gr.Audio(type="filepath"), # Changed to 'filepath' for Gradio 3.x
84
  outputs=gr.Image(type="url"),
85
  live=True,
86
  title="Speech-to-Text to Image Generator")