Dricz commited on
Commit
6dedfce
1 Parent(s): 0f1cc0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()