Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|