Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def show_preds_image(image):
|
|
19 |
results = outputs[0].boxes.xyxy.cpu().numpy()
|
20 |
for det in results:
|
21 |
x1, y1, x2, y2 = det[:4]
|
22 |
-
label = "
|
23 |
cv2.rectangle(
|
24 |
image,
|
25 |
(int(x1), int(y1)),
|
@@ -51,7 +51,7 @@ interface_image = gr.Interface(
|
|
51 |
fn=show_preds_image,
|
52 |
inputs=inputs_image,
|
53 |
outputs=outputs_image,
|
54 |
-
title="
|
55 |
examples=[],
|
56 |
cache_examples=False,
|
57 |
)
|
|
|
19 |
results = outputs[0].boxes.xyxy.cpu().numpy()
|
20 |
for det in results:
|
21 |
x1, y1, x2, y2 = det[:4]
|
22 |
+
label = ""
|
23 |
cv2.rectangle(
|
24 |
image,
|
25 |
(int(x1), int(y1)),
|
|
|
51 |
fn=show_preds_image,
|
52 |
inputs=inputs_image,
|
53 |
outputs=outputs_image,
|
54 |
+
title="Animal detector",
|
55 |
examples=[],
|
56 |
cache_examples=False,
|
57 |
)
|