fffiloni commited on
Commit
49c76ed
·
1 Parent(s): 87be4e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -44,8 +44,8 @@ def predict(img):
44
  show=False)
45
 
46
  #vis_result = cv2.resize(vis_result, dsize=None, fx=0.5, fy=0.5)
47
-
48
- return vis_result, pose_results
49
 
50
  example_list = ['examples/demo2.png']
51
  title = "Pose estimation"
@@ -55,7 +55,7 @@ article = ""
55
  # Create the Gradio demo
56
  demo = gr.Interface(fn=predict,
57
  inputs=gr.Image(),
58
- outputs=[gr.Image(label='Prediction'), gr.Image(label='Pose Results')],
59
  examples=example_list,
60
  title=title,
61
  description=description,
 
44
  show=False)
45
 
46
  #vis_result = cv2.resize(vis_result, dsize=None, fx=0.5, fy=0.5)
47
+ print(f"POSE_RESULTS: {pose_results}")
48
+ return vis_result
49
 
50
  example_list = ['examples/demo2.png']
51
  title = "Pose estimation"
 
55
  # Create the Gradio demo
56
  demo = gr.Interface(fn=predict,
57
  inputs=gr.Image(),
58
+ outputs=[gr.Image(label='Prediction')],
59
  examples=example_list,
60
  title=title,
61
  description=description,