lopesdri commited on
Commit
8ff0011
·
1 Parent(s): d36ea61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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))