Mohssinibra commited on
Commit
a53b1db
·
verified ·
1 Parent(s): 980dcf2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def transcribe_audio(audio):
27
 
28
  # Create a Gradio interface for uploading audio or recording from the browser
29
  demo = gr.Interface(fn=transcribe_audio,
30
- inputs=gr.Audio(source="upload", type="filepath"),
31
  outputs="text")
32
 
33
  demo.launch()
 
27
 
28
  # Create a Gradio interface for uploading audio or recording from the browser
29
  demo = gr.Interface(fn=transcribe_audio,
30
+ inputs=gr.Audio(type="filepath"), # Corrected input component
31
  outputs="text")
32
 
33
  demo.launch()