Guy2 commited on
Commit
6714a55
1 Parent(s): 0b91e55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def anylize(url):
31
  # labels = [str([list(xyxy), confidence, id2label[class_id]]) for xyxy, _, confidence, class_id, _ in detections]
32
  labels = [[list(xyxy), confidence, id2label[class_id]] for xyxy, _, confidence, class_id, _ in detections]
33
  print(labels)
34
- return str(labels)
35
  # json_list = json.dumps(labels)
36
  # return json_list
37
 
 
31
  # labels = [str([list(xyxy), confidence, id2label[class_id]]) for xyxy, _, confidence, class_id, _ in detections]
32
  labels = [[list(xyxy), confidence, id2label[class_id]] for xyxy, _, confidence, class_id, _ in detections]
33
  print(labels)
34
+ return str([image.shape[:2], labels])
35
  # json_list = json.dumps(labels)
36
  # return json_list
37