Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,9 +91,9 @@ def image_annotate(image:str, annotator:str) -> Image.Image:
|
|
| 91 |
|
| 92 |
elif annotator == "Label":
|
| 93 |
labels = [
|
| 94 |
-
f"{
|
| 95 |
-
for
|
| 96 |
-
in zip(detections.
|
| 97 |
]
|
| 98 |
|
| 99 |
rich_label_annotator = sv.RichLabelAnnotator(
|
|
|
|
| 91 |
|
| 92 |
elif annotator == "Label":
|
| 93 |
labels = [
|
| 94 |
+
f"{class_id} {confidence:.2f}"
|
| 95 |
+
for class_id, confidence
|
| 96 |
+
in zip(detections.class_id, detections.confidence)
|
| 97 |
]
|
| 98 |
|
| 99 |
rich_label_annotator = sv.RichLabelAnnotator(
|