kittendev commited on
Commit
41dcf75
1 Parent(s): 845a60a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -300,8 +300,8 @@ if __name__ == '__main__':
300
 
301
  pred_mask = decode_from_colormap(pred_mask, colors)[..., ::-1]
302
 
303
- return pred_mask.astype(np.uint8)
304
-
305
 
306
  demo = gr.Interface(
307
  fn=predict_image,
 
300
 
301
  pred_mask = decode_from_colormap(pred_mask, colors)[..., ::-1]
302
 
303
+ return Image.fromarray(pred_mask.astype(np.uint8))
304
+
305
 
306
  demo = gr.Interface(
307
  fn=predict_image,