Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def detect(img):
|
|
23 |
boxes = predictions[:, :4] # x1, y1, x2, y2
|
24 |
scores = predictions[:, 4]
|
25 |
categories = predictions[:, 5]
|
26 |
-
|
27 |
|
28 |
|
29 |
img = gr.inputs.Image(shape=(192, 192))
|
|
|
23 |
boxes = predictions[:, :4] # x1, y1, x2, y2
|
24 |
scores = predictions[:, 4]
|
25 |
categories = predictions[:, 5]
|
26 |
+
annotated_image = np.squeeze(results.render())
|
27 |
|
28 |
|
29 |
img = gr.inputs.Image(shape=(192, 192))
|