asm3515 commited on
Commit
1aa805d
1 Parent(s): e051b2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def transcribe_audio(audio):
13
  # Create a Gradio interface for the audio input and transcription output
14
  interface = gr.Interface(
15
  fn=transcribe_audio, # Function that handles the transcription
16
- inputs=gr.Audio(source="microphone", type="filepath"), # Input as audio from mic
17
  outputs="text", # Output as text
18
  title="Whisper Speech Recognition",
19
  description="Transcribe speech to text using OpenAI's Whisper model."
 
13
  # Create a Gradio interface for the audio input and transcription output
14
  interface = gr.Interface(
15
  fn=transcribe_audio, # Function that handles the transcription
16
+ inputs=gr.Audio(type="filepath"), # Input as audio, no need for 'source' argument
17
  outputs="text", # Output as text
18
  title="Whisper Speech Recognition",
19
  description="Transcribe speech to text using OpenAI's Whisper model."