Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -831,7 +831,7 @@ from your webcam and run YOLOv8 detection on it.
|
|
| 831 |
conf_threshold=conf_th,
|
| 832 |
)
|
| 833 |
|
| 834 |
-
st.image(result["annotated_image"], caption="Detections", width=
|
| 835 |
st.write(f"YOLO inference time: {result['yolo_inference_time_sec']*1000:.1f} ms")
|
| 836 |
st.write(f"Number of detections: {len(result['detections'])}")
|
| 837 |
if result["detections"]:
|
|
|
|
| 831 |
conf_threshold=conf_th,
|
| 832 |
)
|
| 833 |
|
| 834 |
+
st.image(result["annotated_image"], caption="Detections", width='stretch')
|
| 835 |
st.write(f"YOLO inference time: {result['yolo_inference_time_sec']*1000:.1f} ms")
|
| 836 |
st.write(f"Number of detections: {len(result['detections'])}")
|
| 837 |
if result["detections"]:
|