Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
93 |
label="Pose",
|
94 |
score=0.5, # Full confidence as pose landmarks were detected
|
95 |
box=np.array([0, 0, image.shape[1], image.shape[0]]) # Full image as bounding box
|
96 |
-
)
|
97 |
|
98 |
|
99 |
if landmarks:
|
|
|
93 |
label="Pose",
|
94 |
score=0.5, # Full confidence as pose landmarks were detected
|
95 |
box=np.array([0, 0, image.shape[1], image.shape[0]]) # Full image as bounding box
|
96 |
+
) ] if landmarks else []
|
97 |
|
98 |
|
99 |
if landmarks:
|