Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -417,10 +417,10 @@ with gr.Blocks(css="style.css") as demo:
|
|
417 |
with gr.Tab("Inversion"):
|
418 |
with gr.Row():
|
419 |
with gr.Column():
|
420 |
-
|
421 |
-
|
422 |
-
input_image = gr.ImageEditor(sources='upload', elem_id="image_upload", type='pil', label="Upload image and draw to define mask",
|
423 |
-
|
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)
|
|
|
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)
|