Spaces:
Runtime error
Runtime error
Commit
·
c4f0af6
1
Parent(s):
4dd0b04
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,10 @@ def object_classify(img):
|
|
| 28 |
index = 0
|
| 29 |
|
| 30 |
# Draw bounding box for each result
|
| 31 |
-
for
|
| 32 |
box = bboxes['box']
|
| 33 |
#Draw the bounding box
|
| 34 |
-
output_image = draw_bounding_box(img, bboxes['score'],
|
| 35 |
box['xmin'], box['ymin'],
|
| 36 |
box['xmax'], box['ymax'],
|
| 37 |
index, num_boxes)
|
|
|
|
| 28 |
index = 0
|
| 29 |
|
| 30 |
# Draw bounding box for each result
|
| 31 |
+
for i in bboxes:
|
| 32 |
box = bboxes['box']
|
| 33 |
#Draw the bounding box
|
| 34 |
+
output_image = draw_bounding_box(img, bboxes['score'],bboxes['label'],
|
| 35 |
box['xmin'], box['ymin'],
|
| 36 |
box['xmax'], box['ymax'],
|
| 37 |
index, num_boxes)
|