qgyd2021 commited on
Commit
e1eca0e
·
1 Parent(s): 99140ff
Files changed (1) hide show
  1. main.py +9 -9
main.py CHANGED
@@ -108,15 +108,15 @@ def main():
108
  webrtcvad_image = gr.Image(label="image", height=300, width=720, show_label=False)
109
  webrtcvad_end_points = gr.TextArea(label="end_points", max_lines=35)
110
 
111
- # gr.Examples(
112
- # examples=webrtcvad_examples,
113
- # inputs=[
114
- # webrtcvad_wav, webrtcvad_agg, webrtcvad_frame_duration_ms,
115
- # webrtcvad_padding_duration_ms, webrtcvad_silence_duration_threshold
116
- # ],
117
- # outputs=[webrtcvad_image, webrtcvad_end_points],
118
- # fn=click_webrtcvad_button
119
- # )
120
 
121
  # click event
122
  webrtcvad_button.click(
 
108
  webrtcvad_image = gr.Image(label="image", height=300, width=720, show_label=False)
109
  webrtcvad_end_points = gr.TextArea(label="end_points", max_lines=35)
110
 
111
+ gr.Examples(
112
+ examples=webrtcvad_examples,
113
+ inputs=[
114
+ webrtcvad_wav, webrtcvad_agg, webrtcvad_frame_duration_ms,
115
+ webrtcvad_padding_duration_ms, webrtcvad_silence_duration_threshold
116
+ ],
117
+ outputs=[webrtcvad_image, webrtcvad_end_points],
118
+ fn=click_webrtcvad_button
119
+ )
120
 
121
  # click event
122
  webrtcvad_button.click(