rutsam commited on
Commit
a39f293
1 Parent(s): 6c4292b

use upload audio instead

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ gradio_ui = gr.Interface(
50
  article = """
51
  This demo showcases two pretrained STT models the first model from speechbrain(wave2vec+CTC models)(1,2gb) is 30 times larger compared to the coqui STT (deepspeech model)(45mb).
52
  """,
53
- inputs=[ gr.inputs.Audio(source="microphone", type="file", optional=True, label="Record from microphone")],
54
  outputs=[gr.outputs.Textbox(label="Recognized speech from speechbrain model"),
55
  gr.outputs.Textbox(label="Recognized speech from coqui STT model"),
56
  gr.outputs.Textbox(label="Recognized speech from NVIDIA conformer ctc large model")]
 
50
  article = """
51
  This demo showcases two pretrained STT models the first model from speechbrain(wave2vec+CTC models)(1,2gb) is 30 times larger compared to the coqui STT (deepspeech model)(45mb).
52
  """,
53
+ inputs=[ gr.inputs.Audio(label="Upload Audio File", type="file", optional=False)],
54
  outputs=[gr.outputs.Textbox(label="Recognized speech from speechbrain model"),
55
  gr.outputs.Textbox(label="Recognized speech from coqui STT model"),
56
  gr.outputs.Textbox(label="Recognized speech from NVIDIA conformer ctc large model")]