hatmanstack commited on
Commit
1c930ab
1 Parent(s): 337cf72

Changed inpainting tools

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -80,6 +80,9 @@ with gr.Blocks() as demo:
80
  brush={"color": "#000000", "radius": 25},
81
  show_download_button=False,
82
  show_share_button=False,
 
 
 
83
  label="Draw mask (black areas will be edited)",
84
  )
85
  with gr.Accordion("Optional Mask Prompt", open=False):
@@ -105,10 +108,12 @@ with gr.Blocks() as demo:
105
  height="100%",
106
  width="100%",
107
  crop_size="1:1",
108
- brush={"color": "#000000", "radius": 25},
109
  show_download_button=False,
110
  show_share_button=False,
111
- label="Draw mask (black areas will be edited)"
 
 
112
  )
113
  gr.Button("Create Padding").click(fn=update_mask_editor, inputs=[mask_image], outputs=[mask_image])
114
 
 
80
  brush={"color": "#000000", "radius": 25},
81
  show_download_button=False,
82
  show_share_button=False,
83
+ sources = ["upload"],
84
+ transforms = None,
85
+ layers = False,
86
  label="Draw mask (black areas will be edited)",
87
  )
88
  with gr.Accordion("Optional Mask Prompt", open=False):
 
108
  height="100%",
109
  width="100%",
110
  crop_size="1:1",
111
+ brush=False,
112
  show_download_button=False,
113
  show_share_button=False,
114
+ sources = ["upload"],
115
+ layers = False,
116
+ label="Crop the Image (transparent areas will be edited)"
117
  )
118
  gr.Button("Create Padding").click(fn=update_mask_editor, inputs=[mask_image], outputs=[mask_image])
119