Tonic commited on
Commit
f072bd4
1 Parent(s): c9c32e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -521,7 +521,7 @@ def create_interface():
521
  input_language = gr.Dropdown(input_language_options, label="Select the language", value="English", interactive=True)
522
 
523
  with gr.Accordion("Use Voice", open=False) as voice_accordion:
524
- audio_input = gr.Audio(label="Speak", type="filepath", sources="microphone")
525
  audio_output = gr.Markdown(label="Output text") # Markdown component for audio
526
  gr.Examples([["audio1.m4a"],["audio2.m4a"],],inputs=[input_language])
527
 
 
521
  input_language = gr.Dropdown(input_language_options, label="Select the language", value="English", interactive=True)
522
 
523
  with gr.Accordion("Use Voice", open=False) as voice_accordion:
524
+ audio_input = gr.Audio(label="Speak", type="auto", sources=["microphone", "upload"])
525
  audio_output = gr.Markdown(label="Output text") # Markdown component for audio
526
  gr.Examples([["audio1.m4a"],["audio2.m4a"],],inputs=[input_language])
527