Spaces:
Runtime error
Runtime error
Commit
·
3911c7d
1
Parent(s):
f1df253
add examples
Browse files- app.py +21 -0
- test_wavs/wenetspeech/DEV_T0000000000.opus +0 -0
- test_wavs/wenetspeech/README.md +2 -0
app.py
CHANGED
|
@@ -279,6 +279,7 @@ with demo:
|
|
| 279 |
],
|
| 280 |
outputs=[uploaded_output, uploaded_html_info],
|
| 281 |
)
|
|
|
|
| 282 |
record_button.click(
|
| 283 |
process_microphone,
|
| 284 |
inputs=[
|
|
@@ -290,6 +291,26 @@ with demo:
|
|
| 290 |
],
|
| 291 |
outputs=[recorded_output, recorded_html_info],
|
| 292 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 293 |
gr.Markdown(description)
|
| 294 |
|
| 295 |
if __name__ == "__main__":
|
|
|
|
| 279 |
],
|
| 280 |
outputs=[uploaded_output, uploaded_html_info],
|
| 281 |
)
|
| 282 |
+
|
| 283 |
record_button.click(
|
| 284 |
process_microphone,
|
| 285 |
inputs=[
|
|
|
|
| 291 |
],
|
| 292 |
outputs=[recorded_output, recorded_html_info],
|
| 293 |
)
|
| 294 |
+
gr.Examples(
|
| 295 |
+
examples=[
|
| 296 |
+
[
|
| 297 |
+
"Chinese",
|
| 298 |
+
"luomingshuang/icefall_asr_wenetspeech_pruned_transducer_stateless2",
|
| 299 |
+
"greedy_search",
|
| 300 |
+
4,
|
| 301 |
+
"./test_wavs/wenetspeech/DEV_T0000000000.opus",
|
| 302 |
+
],
|
| 303 |
+
],
|
| 304 |
+
inputs=[
|
| 305 |
+
uploaded_file,
|
| 306 |
+
language_radio,
|
| 307 |
+
model_dropdown,
|
| 308 |
+
decoding_method_radio,
|
| 309 |
+
num_active_paths_slider,
|
| 310 |
+
],
|
| 311 |
+
outputs=[uploaded_output, uploaded_html_info],
|
| 312 |
+
fn=process_uploaded_file,
|
| 313 |
+
)
|
| 314 |
gr.Markdown(description)
|
| 315 |
|
| 316 |
if __name__ == "__main__":
|
test_wavs/wenetspeech/DEV_T0000000000.opus
ADDED
|
Binary file (23.1 kB). View file
|
|
|
test_wavs/wenetspeech/README.md
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Files are downloaded from
|
| 2 |
+
https://huggingface.co/luomingshuang/icefall_asr_wenetspeech_pruned_transducer_stateless2/tree/main/test_wavs
|