Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ model = YOLO('best (1).pt')
|
|
32 |
def response(image):
|
33 |
res = Image.open(image)
|
34 |
im_rgb = model(res)
|
35 |
-
im_rgb = Image.fromarray(im_rgb)
|
36 |
-
return im_rgb
|
37 |
|
38 |
iface = gr.Interface(fn=response, inputs="image", outputs="image")
|
39 |
iface.launch()
|
|
|
32 |
def response(image):
|
33 |
res = Image.open(image)
|
34 |
im_rgb = model(res)
|
35 |
+
# im_rgb = Image.fromarray(im_rgb)
|
36 |
+
return np.array(im_rgb)
|
37 |
|
38 |
iface = gr.Interface(fn=response, inputs="image", outputs="image")
|
39 |
iface.launch()
|