Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -415,7 +415,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
415 |
gr.Markdown("""1) Either sample a new model, or upload an image (optionally draw a mask over the face) and click `invert`. """)
|
416 |
gr.HTML("""<div id='input_image' style='display:block; margin-left: auto; margin-right: auto></div>""")
|
417 |
|
418 |
-
input_image = gr.Image(source='upload',
|
419 |
width=512, height=512, brush_color='#00FFFF', mask_opacity=0.4, elem_id="input_image") # height=512, width=512,
|
420 |
|
421 |
with gr.Row():
|
|
|
415 |
gr.Markdown("""1) Either sample a new model, or upload an image (optionally draw a mask over the face) and click `invert`. """)
|
416 |
gr.HTML("""<div id='input_image' style='display:block; margin-left: auto; margin-right: auto></div>""")
|
417 |
|
418 |
+
input_image = gr.Image(source='upload', tool='sketch', type='pil', label="Upload image and draw to define mask",
|
419 |
width=512, height=512, brush_color='#00FFFF', mask_opacity=0.4, elem_id="input_image") # height=512, width=512,
|
420 |
|
421 |
with gr.Row():
|