xmrt commited on
Commit
31fdeeb
1 Parent(s): afd2199

new test ports

Browse files
Files changed (1) hide show
  1. main.py +12 -5
main.py CHANGED
@@ -2,7 +2,7 @@ import mmpose
2
  print(mmpose.__version__)
3
  from mmpose.apis import MMPoseInferencer
4
  inferencer = MMPoseInferencer('human')
5
- print("[INFO]: Imported modules!!")
6
 
7
  import gradio as gr
8
 
@@ -23,8 +23,15 @@ def greet(photo):
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()
 
 
 
 
 
 
 
 
 
 
 
2
  print(mmpose.__version__)
3
  from mmpose.apis import MMPoseInferencer
4
  inferencer = MMPoseInferencer('human')
5
+ print("[INFO]: Imported modules!")
6
 
7
  import gradio as gr
8
 
 
23
  # pose2d_weights='custom_human_pose_estimator.pth',
24
  # det_model='human'
25
  # )
 
 
 
26
 
27
+ def run():
28
+ demo = gr.Interface(fn=greet,
29
+ inputs=gr.Image(source="webcam"),
30
+ outputs=gr.Image())
31
+
32
+
33
+ demo.launch(server_name="0.0.0.0", server_port=7860)
34
+
35
+
36
+ if __name__ == "__main__":
37
+ run()