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