xmrt commited on
Commit
26cfa72
·
1 Parent(s): 7cd5862

new test mmdet

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,7 +23,8 @@ def greet(photo):
23
  # pose2d_weights='custom_human_pose_estimator.pth',
24
  # det_model='human'
25
  # )
 
26
 
27
- demo = gr.Interface(fn=greet, inputs=gr.Image(source="webcam"), outputs=gr.Image())
28
 
29
- demo.launch()
 
23
  # pose2d_weights='custom_human_pose_estimator.pth',
24
  # det_model='human'
25
  # )
26
+ if __name__ == '__main__':
27
 
28
+ demo = gr.Interface(fn=greet, inputs=gr.Image(source="webcam"), outputs=gr.Image())
29
 
30
+ demo.launch()