csukuangfj commited on
Commit
4bf1ac3
·
1 Parent(s): 957f423

disable examples

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