csukuangfj commited on
Commit
a18f825
·
1 Parent(s): 7773eee

disable examples

Browse files
Files changed (1) hide show
  1. app.py +26 -26
app.py CHANGED
@@ -329,19 +329,19 @@ with demo:
329
  uploaded_output = gr.Textbox(label="Recognized speech from uploaded file")
330
  uploaded_html_info = gr.HTML(label="Info")
331
 
332
- gr.Examples(
333
- examples=examples,
334
- inputs=[
335
- language_radio,
336
- model_dropdown,
337
- decoding_method_radio,
338
- num_active_paths_slider,
339
- punct_radio,
340
- uploaded_file,
341
- ],
342
- outputs=[uploaded_output, uploaded_html_info],
343
- fn=process_uploaded_file,
344
- )
345
 
346
  with gr.TabItem("Record from microphone"):
347
  microphone = gr.Audio(
@@ -354,19 +354,19 @@ with demo:
354
  recorded_output = gr.Textbox(label="Recognized speech from recordings")
355
  recorded_html_info = gr.HTML(label="Info")
356
 
357
- gr.Examples(
358
- examples=examples,
359
- inputs=[
360
- language_radio,
361
- model_dropdown,
362
- decoding_method_radio,
363
- num_active_paths_slider,
364
- punct_radio,
365
- microphone,
366
- ],
367
- outputs=[recorded_output, recorded_html_info],
368
- fn=process_microphone,
369
- )
370
 
371
  with gr.TabItem("From URL"):
372
  url_textbox = gr.Textbox(
 
329
  uploaded_output = gr.Textbox(label="Recognized speech from uploaded file")
330
  uploaded_html_info = gr.HTML(label="Info")
331
 
332
+ # gr.Examples(
333
+ # examples=examples,
334
+ # inputs=[
335
+ # language_radio,
336
+ # model_dropdown,
337
+ # decoding_method_radio,
338
+ # num_active_paths_slider,
339
+ # punct_radio,
340
+ # uploaded_file,
341
+ # ],
342
+ # outputs=[uploaded_output, uploaded_html_info],
343
+ # fn=process_uploaded_file,
344
+ # )
345
 
346
  with gr.TabItem("Record from microphone"):
347
  microphone = gr.Audio(
 
354
  recorded_output = gr.Textbox(label="Recognized speech from recordings")
355
  recorded_html_info = gr.HTML(label="Info")
356
 
357
+ # gr.Examples(
358
+ # examples=examples,
359
+ # inputs=[
360
+ # language_radio,
361
+ # model_dropdown,
362
+ # decoding_method_radio,
363
+ # num_active_paths_slider,
364
+ # punct_radio,
365
+ # microphone,
366
+ # ],
367
+ # outputs=[recorded_output, recorded_html_info],
368
+ # fn=process_microphone,
369
+ # )
370
 
371
  with gr.TabItem("From URL"):
372
  url_textbox = gr.Textbox(