karthikmn commited on
Commit
d13b41a
·
verified ·
1 Parent(s): 6ac0c31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def speech_to_text(audio_file):
27
  # Set up the Gradio interface
28
  iface = gr.Interface(
29
  fn=speech_to_text, # Function to be executed
30
- inputs=gr.Audio(source="upload", type="file"), # Allow audio file upload
31
  outputs=gr.Textbox(), # Display transcription in a text box
32
  title="Speech-to-Text Analyzer for Lecture Notes",
33
  description="Upload an audio file (e.g., lecture recording) to get the transcription of the speech."
 
27
  # Set up the Gradio interface
28
  iface = gr.Interface(
29
  fn=speech_to_text, # Function to be executed
30
+ inputs=gr.Audio(type="file"), # Allow audio file upload without the 'source' argument
31
  outputs=gr.Textbox(), # Display transcription in a text box
32
  title="Speech-to-Text Analyzer for Lecture Notes",
33
  description="Upload an audio file (e.g., lecture recording) to get the transcription of the speech."