jaekookang commited on
Commit
b4ac259
1 Parent(s): 37f6612

change upload to microphone

Browse files
Files changed (1) hide show
  1. gradio_asr_en_libri100.py +2 -2
gradio_asr_en_libri100.py CHANGED
@@ -66,13 +66,13 @@ iface = gr.Interface(
66
  title='ESPNet2 ASR Librispeech Conformer (trained on clean-100h)',
67
  description='Upload your wav file to test the model',
68
  inputs=[
69
- gr.inputs.Audio(label='wav file', source='upload', type='filepath')
70
  ],
71
  outputs=[
72
  gr.outputs.Textbox(label='decoding result'),
73
  ],
74
  examples=examples,
75
- article='<p style="text-align:center">Model URL<a href="https://huggingface.co/jkang/espnet2_librispeech_100_conformer">🤗</a></p>',
76
  )
77
 
78
  if __name__ == '__main__':
 
66
  title='ESPNet2 ASR Librispeech Conformer (trained on clean-100h)',
67
  description='Upload your wav file to test the model',
68
  inputs=[
69
+ gr.inputs.Audio(label='wav file', source='microphone', type='filepath')
70
  ],
71
  outputs=[
72
  gr.outputs.Textbox(label='decoding result'),
73
  ],
74
  examples=examples,
75
+ article='<p style="text-align:center">Model URL<a target="_blank" href="https://huggingface.co/jkang/espnet2_librispeech_100_conformer">🤗</a></p>',
76
  )
77
 
78
  if __name__ == '__main__':