taroii commited on
Commit
87947a4
·
1 Parent(s): 7861bab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #return labels
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,