Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def detect(img):
|
|
26 |
boxes = predictions[:, :4] # x1, y1, x2, y2
|
27 |
scores = predictions[:, 4]
|
28 |
categories = predictions[:, 5]
|
29 |
-
return results
|
30 |
# show detection bounding boxes on image
|
31 |
|
32 |
img = gr.inputs.Image(shape=(192, 192))
|
|
|
26 |
boxes = predictions[:, :4] # x1, y1, x2, y2
|
27 |
scores = predictions[:, 4]
|
28 |
categories = predictions[:, 5]
|
29 |
+
return results.show()
|
30 |
# show detection bounding boxes on image
|
31 |
|
32 |
img = gr.inputs.Image(shape=(192, 192))
|