Ubuntu commited on
Commit
56ef960
·
1 Parent(s): ea07644

changed image order

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def detect_hotspots(image):
10
  for r in result:
11
  im_array = r.plot()
12
  # im = Image.fromarray(im_array[..., ::-1])
13
- return Image.fromarray(im_array[..., ::-1])
14
 
15
 
16
  demo = gr.Interface(fn=detect_hotspots, inputs=gr.Image(), outputs="image", title="YOLO Object Detection")
 
10
  for r in result:
11
  im_array = r.plot()
12
  # im = Image.fromarray(im_array[..., ::-1])
13
+ return Image.fromarray(im_array)
14
 
15
 
16
  demo = gr.Interface(fn=detect_hotspots, inputs=gr.Image(), outputs="image", title="YOLO Object Detection")