Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def predict_pose(frame):
|
|
| 9 |
results = model.predict(frame, imgsz=480, conf=0.5, iou=0.5)[0]
|
| 10 |
|
| 11 |
# Draw results on frame
|
| 12 |
-
annotated_frame = results.plot(labels=False) # YOLOv8 handles drawing
|
| 13 |
return annotated_frame
|
| 14 |
|
| 15 |
# Set up Gradio interface
|
|
|
|
| 9 |
results = model.predict(frame, imgsz=480, conf=0.5, iou=0.5)[0]
|
| 10 |
|
| 11 |
# Draw results on frame
|
| 12 |
+
annotated_frame = results.plot(labels=False, boxes=False) # YOLOv8 handles drawing
|
| 13 |
return annotated_frame
|
| 14 |
|
| 15 |
# Set up Gradio interface
|