Walid-Ahmed commited on
Commit
c9ccf46
·
verified ·
1 Parent(s): 6c8e1ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def transcribe(audio):
19
  # Create the Gradio interface
20
  demo = gr.Interface(
21
  fn=transcribe, # The function to be called for transcription
22
- inputs=gr.Audio(source="microphone", type="filepath", label="Speak into the microphone"), # Input audio
23
  outputs=gr.Textbox(label="Transcription"), # Output transcription
24
  title="Whisper Speech-to-Text", # Title of the interface
25
  description="Record audio using your microphone and get a transcription using the Whisper model."
 
19
  # Create the Gradio interface
20
  demo = gr.Interface(
21
  fn=transcribe, # The function to be called for transcription
22
+ inputs=gr.Audio(type="filepath", label="Upload your audio file"), # Input audio field
23
  outputs=gr.Textbox(label="Transcription"), # Output transcription
24
  title="Whisper Speech-to-Text", # Title of the interface
25
  description="Record audio using your microphone and get a transcription using the Whisper model."