Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def greet(image):
|
|
| 41 |
with torch.no_grad():
|
| 42 |
mask_pred = model(image)
|
| 43 |
|
| 44 |
-
return mask_pred[0]
|
| 45 |
|
| 46 |
|
| 47 |
demo = gr.Interface(
|
|
@@ -59,7 +59,7 @@ demo = gr.Interface(
|
|
| 59 |
outputs=[
|
| 60 |
gr.Image(
|
| 61 |
label="Model Prediction",
|
| 62 |
-
image_mode="
|
| 63 |
# height=400,
|
| 64 |
# width=400,
|
| 65 |
)
|
|
|
|
| 41 |
with torch.no_grad():
|
| 42 |
mask_pred = model(image)
|
| 43 |
|
| 44 |
+
return mask_pred[0].numpy()
|
| 45 |
|
| 46 |
|
| 47 |
demo = gr.Interface(
|
|
|
|
| 59 |
outputs=[
|
| 60 |
gr.Image(
|
| 61 |
label="Model Prediction",
|
| 62 |
+
image_mode="L",
|
| 63 |
# height=400,
|
| 64 |
# width=400,
|
| 65 |
)
|