kedimestan
commited on
Commit
•
ee049fd
1
Parent(s):
e472bb3
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def yolov8_inference(
|
|
48 |
for i,box in enumerate(results[0].boxes):
|
49 |
label = results[0].names[box.cls[0].item()]
|
50 |
bbox = box.xyxy[0]
|
51 |
-
|
52 |
-
return
|
53 |
|
54 |
|
55 |
inputs = [
|
|
|
48 |
for i,box in enumerate(results[0].boxes):
|
49 |
label = results[0].names[box.cls[0].item()]
|
50 |
bbox = box.xyxy[0]
|
51 |
+
outputs.append({"label": label, "bbox_coords": bbox})
|
52 |
+
return outputs
|
53 |
|
54 |
|
55 |
inputs = [
|