Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def draw_predictions(boxes, labels, scores, img, score_threshold=0.5, font_size=
|
|
| 113 |
img_bbox = draw_bounding_boxes(
|
| 114 |
img,
|
| 115 |
boxes=boxes_filtered,
|
| 116 |
-
labels=[f"{name}
|
| 117 |
colors=colors,
|
| 118 |
width=10,
|
| 119 |
font_size=30,
|
|
|
|
| 113 |
img_bbox = draw_bounding_boxes(
|
| 114 |
img,
|
| 115 |
boxes=boxes_filtered,
|
| 116 |
+
labels=[f"{name} {score:.2f}" for name, score in zip(label_names, scores_filtered)],
|
| 117 |
colors=colors,
|
| 118 |
width=10,
|
| 119 |
font_size=30,
|