Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|