Spaces:
Paused
Paused
Update app.py
Browse files
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
|
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')
|
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,
|