Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
bc3aebd
1
Parent(s):
c8b967a
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def inference(img):
|
|
38 |
onnx_result = cv.cvtColor(onnx_result, cv.COLOR_RGB2BGR)
|
39 |
|
40 |
|
41 |
-
img =
|
42 |
im_pil = Image.fromarray(img)
|
43 |
return im_pil
|
44 |
|
|
|
38 |
onnx_result = cv.cvtColor(onnx_result, cv.COLOR_RGB2BGR)
|
39 |
|
40 |
|
41 |
+
img = cv.cvtColor(onnx_result, cv.COLOR_BGR2RGB)
|
42 |
im_pil = Image.fromarray(img)
|
43 |
return im_pil
|
44 |
|