pagling commited on
Commit
fac791a
·
verified ·
1 Parent(s): c776ec4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -99,12 +99,9 @@ with gr.Blocks() as demo:
99
  if __name__ == "__main__":
100
  demo.launch()
101
 
102
- webcam_button.click(fn=detect_webcam, inputs=[webcam_input, webcam_conf], outputs=webcam_output)
103
 
104
  # 绑定事件处理
105
  img_button.click(fn=detect_image, inputs=[img_input, img_conf], outputs=img_output)
106
  video_button.click(fn=detect_video, inputs=[video_input, video_conf], outputs=video_output)
107
  webcam_button.click(fn=detect_webcam, inputs=[webcam_input, webcam_conf], outputs=webcam_output)
108
-
109
- if __name__ == "__main__":
110
- demo.launch()
 
99
  if __name__ == "__main__":
100
  demo.launch()
101
 
102
+ webcam_button.click(fn=detect_webcam, inputs=[webcam_input, webcam_conf], outputs=webcam_output)
103
 
104
  # 绑定事件处理
105
  img_button.click(fn=detect_image, inputs=[img_input, img_conf], outputs=img_output)
106
  video_button.click(fn=detect_video, inputs=[video_input, video_conf], outputs=video_output)
107
  webcam_button.click(fn=detect_webcam, inputs=[webcam_input, webcam_conf], outputs=webcam_output)