csyxwei commited on
Commit
df2388c
1 Parent(s): 87bb208

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -31,7 +31,12 @@ def create_demo():
31
  with gr.Row():
32
  with gr.Column():
33
  with gr.Group():
34
- image = gr.Image(label='Input', tool='sketch', type='pil')
 
 
 
 
 
35
  # gr.Markdown('Draw a mask on your object.')
36
  gr.Markdown('Upload your image and **draw a mask on the object part.** Like [this](https://user-images.githubusercontent.com/23421814/224873479-c4cf44d6-8c99-4ef9-b972-87c25fe923ee.png).')
37
  prompt = gr.Text(
 
31
  with gr.Row():
32
  with gr.Column():
33
  with gr.Group():
34
+ # image = gr.Image(label='Input', tool='sketch', type='pil')
35
+ image = gr.ImageEditor(label="Input",
36
+ type="pil",
37
+ brush=gr.Brush(colors=["#FFFFFF"], default_size=20, color_mode="fixed"),
38
+ layers=False,
39
+ interactive=True)
40
  # gr.Markdown('Draw a mask on your object.')
41
  gr.Markdown('Upload your image and **draw a mask on the object part.** Like [this](https://user-images.githubusercontent.com/23421814/224873479-c4cf44d6-8c99-4ef9-b972-87c25fe923ee.png).')
42
  prompt = gr.Text(