riteshkr commited on
Commit
3e6fe5d
1 Parent(s): 6422215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,14 +22,14 @@ def transcribe_speech(filepath):
22
  # Define the Gradio interface for microphone input
23
  mic_transcribe = gr.Interface(
24
  fn=transcribe_speech,
25
- inputs=gr.Audio(source="microphone", type="filepath"),
26
  outputs=gr.Textbox(),
27
  )
28
 
29
  # Define the Gradio interface for file upload input
30
  file_transcribe = gr.Interface(
31
  fn=transcribe_speech,
32
- inputs=gr.Audio(source="upload", type="filepath"),
33
  outputs=gr.Textbox(),
34
  )
35
 
 
22
  # Define the Gradio interface for microphone input
23
  mic_transcribe = gr.Interface(
24
  fn=transcribe_speech,
25
+ inputs=gr.Audio(sources="microphone", type="filepath"),
26
  outputs=gr.Textbox(),
27
  )
28
 
29
  # Define the Gradio interface for file upload input
30
  file_transcribe = gr.Interface(
31
  fn=transcribe_speech,
32
+ inputs=gr.Audio(sources="upload", type="filepath"),
33
  outputs=gr.Textbox(),
34
  )
35