Sajjo commited on
Commit
34b4eab
·
verified ·
1 Parent(s): 895289d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -327,7 +327,7 @@ def audio_capture_interface():
327
  file_upload = gr.File(label="Upload a text file", file_types=["text"])
328
  text_display = gr.Textbox(label="Text", value="Please upload a file to begin.", interactive=False)
329
  with gr.Row():
330
- audio_input = gr.Audio(source="microphone", type="numpy", label="Speak and click submit")
331
  with gr.Row():
332
  status_output = gr.Textbox(label="Status", placeholder="Status will appear here")
333
  with gr.Row():
 
327
  file_upload = gr.File(label="Upload a text file", file_types=["text"])
328
  text_display = gr.Textbox(label="Text", value="Please upload a file to begin.", interactive=False)
329
  with gr.Row():
330
+ audio_input = gr.Audio(sources=["microphone","upload"], type="filepath", label="Speak and click submit")
331
  with gr.Row():
332
  status_output = gr.Textbox(label="Status", placeholder="Status will appear here")
333
  with gr.Row():