Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
40 |
draw.text((x, y), label_name, fill="white")
|
41 |
|
42 |
-
return
|
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,
|