Spaces:
Sleeping
Sleeping
Update app.py
Browse files299 unmodified lines300301302303304305306307299 unmodified linespred_mask = decode_from_colormap(pred_mask, colors)[..., ::-1]return pred_mask.astype(np.uint8)demo = gr.Interface(fn=predict_image,299 unmodified lines300301302303304305306307299 unmodified linespred_mask = decode_from_colormap(pred_mask, colors)[..., ::-1]return Image.fromarray(pred_mask.astype(np.uint8))demo = gr.Interface(fn=predict_image,
app.py+2-2