Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def predict (image):
|
|
21 |
conf = []
|
22 |
for result in results:
|
23 |
im_array = result.plot()
|
24 |
-
img = Image.fromarray(im_array
|
25 |
img.show()
|
26 |
### Getting the confidence
|
27 |
box = result.boxes
|
|
|
21 |
conf = []
|
22 |
for result in results:
|
23 |
im_array = result.plot()
|
24 |
+
img = Image.fromarray(im_array) # RGB PIL image
|
25 |
img.show()
|
26 |
### Getting the confidence
|
27 |
box = result.boxes
|