imansarraf commited on
Commit
296f0d7
·
verified ·
1 Parent(s): b3305c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def transcribe_audio(audio_file):
7
  # Define the Gradio interface
8
  interface = gr.Interface(
9
  fn=transcribe_audio,
10
- inputs=gr.Audio(source="microphone", type="filepath"),
11
  outputs="text",
12
  title="Audio Transcription",
13
  description="Upload an audio file or record audio to get the transcription."
 
7
  # Define the Gradio interface
8
  interface = gr.Interface(
9
  fn=transcribe_audio,
10
+ inputs=gr.Audio(type="filepath"), # Removed 'source="microphone"'
11
  outputs="text",
12
  title="Audio Transcription",
13
  description="Upload an audio file or record audio to get the transcription."