Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,6 @@ def query(image):
|
|
28 |
labels = [f"{id2label[class_id]} {confidence:.2f}" for _, confidence, class_id, _ in detections]
|
29 |
frame = box_annotator.annotate(scene=image.copy(), detections=detections, labels=labels)
|
30 |
|
31 |
-
print('detections')
|
32 |
-
%matplotlib inline
|
33 |
plot_image(frame, (16, 16))
|
34 |
|
35 |
return labels, frame
|
|
|
28 |
labels = [f"{id2label[class_id]} {confidence:.2f}" for _, confidence, class_id, _ in detections]
|
29 |
frame = box_annotator.annotate(scene=image.copy(), detections=detections, labels=labels)
|
30 |
|
|
|
|
|
31 |
plot_image(frame, (16, 16))
|
32 |
|
33 |
return labels, frame
|