ritwikraha commited on
Commit
e51a16d
1 Parent(s): 9fbf18e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
  import imageio
3
 
4
  def create_mask(image):
5
- image["mask"]
 
6
 
7
  with gr.Blocks() as demo:
8
  gr.Markdown(
 
2
  import imageio
3
 
4
  def create_mask(image):
5
+ imageio.imwrite("output_image.png", image["mask"])
6
+ return image["mask"]
7
 
8
  with gr.Blocks() as demo:
9
  gr.Markdown(