Spaces:
Runtime error
Runtime error
jaekookang
commited on
Commit
•
b4ac259
1
Parent(s):
37f6612
change upload to microphone
Browse files
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='
|
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__':
|