osbm commited on
Commit
f6524bf
·
verified ·
1 Parent(s): 034449b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="RGB",
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
  )