Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,9 @@ def predict(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 |
-
return plot_image(frame, (16, 16))
|
32 |
|
33 |
-
|
34 |
|
35 |
gr.Interface(
|
36 |
predict,
|
|
|
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 |
+
#return plot_image(frame, (16, 16))
|
32 |
|
33 |
+
return frame
|
34 |
|
35 |
gr.Interface(
|
36 |
predict,
|