Dricz commited on
Commit
d4f43ce
1 Parent(s): f36daf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def response2(image: gr.Image = None,image_size: gr.Slider = 640, conf_threshold
34
 
35
  for r in results:
36
  conf = (r.boxes.conf)
37
- cls = (r.boxes.cls)
38
  xywh = (r.boxes.xywh)
39
  x = xywh[0]
40
  y = xywh[1]
 
34
 
35
  for r in results:
36
  conf = (r.boxes.conf)
37
+ cls = int(r.boxes.cls)
38
  xywh = (r.boxes.xywh)
39
  x = xywh[0]
40
  y = xywh[1]