mokady commited on
Commit
2b46a79
1 Parent(s): 18fa5fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -214,7 +214,7 @@ with image_blocks as demo:
214
  ''')
215
  with gr.Row():
216
  with gr.Column():
217
- image = gr.Image(sources=['upload'], elem_id="image_upload", tool='sketch', type="pil", label="Upload", height=400)
218
  with gr.Row(elem_id="prompt-container", equal_height=True):
219
  with gr.Row():
220
  prompt = gr.Textbox(placeholder="Your prompt (what you want in place of what is erased)", show_label=False, elem_id="prompt")
 
214
  ''')
215
  with gr.Row():
216
  with gr.Column():
217
+ image = gr.ImageEditor(sources=["upload"], layers=False, transforms=[], brush=gr.Brush(colors=["#000000"], color_mode="fixed")) #gr.Image(sources=['upload'], tool='sketch', elem_id="image_upload", type="pil", label="Upload", height=400)
218
  with gr.Row(elem_id="prompt-container", equal_height=True):
219
  with gr.Row():
220
  prompt = gr.Textbox(placeholder="Your prompt (what you want in place of what is erased)", show_label=False, elem_id="prompt")