Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def process_image(image: PIL.Image.Image) -> tuple[PIL.Image.Image, list[dict]]:
|
|
52 |
|
53 |
# annotate bounding boxes
|
54 |
annotated_frame = bounding_box_annotator.annotate(scene=image.copy(), detections=detections)
|
55 |
-
annotated_frame = label_annotator(scene=annotated_frame, detections=detections, labels=text_labels)
|
56 |
|
57 |
return annotated_frame
|
58 |
|
|
|
52 |
|
53 |
# annotate bounding boxes
|
54 |
annotated_frame = bounding_box_annotator.annotate(scene=image.copy(), detections=detections)
|
55 |
+
annotated_frame = label_annotator.annotate(scene=annotated_frame, detections=detections, labels=text_labels)
|
56 |
|
57 |
return annotated_frame
|
58 |
|