kittendev commited on
Commit
c487e2d
1 Parent(s): 270529f

Update app.py

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