Spaces:
Runtime error
Runtime error
Sriram Elango
commited on
Commit
•
d0f588e
1
Parent(s):
32484e9
Update
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def detect(inp):
|
|
23 |
#g = (size / max(inp.size)) #gain
|
24 |
#im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
|
25 |
results = model(inp,size=640) # inference
|
26 |
-
print(
|
27 |
results.render() # updates results.imgs with boxes and labels
|
28 |
return Image.fromarray(results.imgs[0])
|
29 |
|
|
|
23 |
#g = (size / max(inp.size)) #gain
|
24 |
#im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
|
25 |
results = model(inp,size=640) # inference
|
26 |
+
print(results)
|
27 |
results.render() # updates results.imgs with boxes and labels
|
28 |
return Image.fromarray(results.imgs[0])
|
29 |
|