new test mmdet
Browse files
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()
|