Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def yolov8_img_inference(
|
|
68 |
clist = results[0].boxes.cls
|
69 |
cls = set()
|
70 |
for c in clist:
|
71 |
-
cls
|
72 |
if c in names:
|
73 |
object_counts[c] += 1
|
74 |
elif c not in names:
|
|
|
68 |
clist = results[0].boxes.cls
|
69 |
cls = set()
|
70 |
for c in clist:
|
71 |
+
cls.add(names[int(c)])
|
72 |
if c in names:
|
73 |
object_counts[c] += 1
|
74 |
elif c not in names:
|