amildravid4292 commited on
Commit
8ea97e6
·
verified ·
1 Parent(s): 635db1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -417,9 +417,10 @@ with gr.Blocks(css="style.css") as demo:
417
  with gr.Tab("Inversion"):
418
  with gr.Row():
419
  with gr.Column():
420
- input_image = gr.Image(sources='upload', elem_id="image_upload", tool='sketch', type='pil', label="Upload image and draw to define mask",
421
- height=512, width=512, brush_color='#00FFFF', mask_opacity=0.6)
422
-
 
423
 
424
  lr = gr.Number(value=1e-1, label="Learning Rate", interactive=True)
425
  weight_decay = gr.Number(value=1e-10, label="Weight Decay", interactive=True)
 
417
  with gr.Tab("Inversion"):
418
  with gr.Row():
419
  with gr.Column():
420
+ # input_image = gr.Image(sources='upload', elem_id="image_upload", tool='sketch', type='pil', label="Upload image and draw to define mask",
421
+ # height=512, width=512, brush_color='#00FFFF', mask_opacity=0.6)
422
+ input_image = gr.ImageEditor(sources='upload', elem_id="image_upload", type='pil', label="Upload image and draw to define mask",
423
+ height=512, width=512)
424
 
425
  lr = gr.Number(value=1e-1, label="Learning Rate", interactive=True)
426
  weight_decay = gr.Number(value=1e-10, label="Weight Decay", interactive=True)