JosephTK commited on
Commit
0ad0b8c
·
1 Parent(s): 97f1b93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,10 +36,10 @@ def detect(image):
36
  counts[label_name] += 1
37
 
38
  x, y, w, h = tuple(box)
39
- draw.rectangle((x, y, x+w, y+h), outline="red", width=1)
40
  draw.text((x, y), label_name, fill="white")
41
 
42
- return results, image
43
 
44
  demo = gr.Interface(
45
  fn=detect,
 
36
  counts[label_name] += 1
37
 
38
  x, y, w, h = tuple(box)
39
+ draw.rectangle((x, y, x+w, y+h), outline="red")
40
  draw.text((x, y), label_name, fill="white")
41
 
42
+ return counts, image
43
 
44
  demo = gr.Interface(
45
  fn=detect,