DamarJati commited on
Commit
18430e9
·
verified ·
1 Parent(s): 699a21b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -320,7 +320,7 @@ with gr.Blocks(css= "style.css") as app:
320
  with gr.Tab ("Inpainting"):
321
  with gr.Row():
322
  with gr.Column():
323
- image = gr.Image(tool="sketch", elem_id="image_upload", type="pil", label="Upload")
324
  btn = gr.Button("Inpaint!", elem_id="run_button")
325
  prompt = gr.Textbox(placeholder="Your prompt (what you want in place of what is erased)", show_label=False, elem_id="prompt")
326
  negative_prompt = gr.Textbox(label="negative_prompt", placeholder="Your negative prompt", info="what you don't want to see in the image")
 
320
  with gr.Tab ("Inpainting"):
321
  with gr.Row():
322
  with gr.Column():
323
+ image = gr.ImageMask(sources=["upload"], layers=False, transforms=[], format="png", label="base image", show_label=True)
324
  btn = gr.Button("Inpaint!", elem_id="run_button")
325
  prompt = gr.Textbox(placeholder="Your prompt (what you want in place of what is erased)", show_label=False, elem_id="prompt")
326
  negative_prompt = gr.Textbox(label="negative_prompt", placeholder="Your negative prompt", info="what you don't want to see in the image")