Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,6 +26,8 @@ def image_annotate(image:str, annotator:str) -> Image.Image:
|
|
| 26 |
# convert YOLO output to a Supervision-compatible detections format
|
| 27 |
detections = sv.Detections.from_ultralytics(result)
|
| 28 |
|
|
|
|
|
|
|
| 29 |
# select annotator
|
| 30 |
if annotator == "Box":
|
| 31 |
box_annotator = sv.BoxAnnotator()
|
|
|
|
| 26 |
# convert YOLO output to a Supervision-compatible detections format
|
| 27 |
detections = sv.Detections.from_ultralytics(result)
|
| 28 |
|
| 29 |
+
annotated_image_show = None
|
| 30 |
+
|
| 31 |
# select annotator
|
| 32 |
if annotator == "Box":
|
| 33 |
box_annotator = sv.BoxAnnotator()
|