Sa-m commited on
Commit
06949d1
1 Parent(s): 71369b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def detect(inp):
24
  #im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
25
  results = model(inp,size=640) # inference
26
  results.render() # updates results.imgs with boxes and labels
27
- return Image.fromarray(results.imgs[0])
28
 
29
 
30
  inp = gr.Image(type="pil", label="Original Image")
 
24
  #im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
25
  results = model(inp,size=640) # inference
26
  results.render() # updates results.imgs with boxes and labels
27
+ return Image.fromarray(results.ims[0])
28
 
29
 
30
  inp = gr.Image(type="pil", label="Original Image")