amildravid4292 commited on
Commit
35db0e5
·
verified ·
1 Parent(s): 1eefe1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -413,10 +413,8 @@ with gr.Blocks(css="style.css") as demo:
413
  with gr.Row():
414
  with gr.Column():
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():
422
  sample = gr.Button("🎲 Sample New Model")
 
413
  with gr.Row():
414
  with gr.Column():
415
  gr.Markdown("""1) Either sample a new model, or upload an image (optionally draw a mask over the face) and click `invert`. """)
416
+ input_image = gr.Image(source='upload', elem_id="image_upload", tool='sketch', type='pil', label="Upload image and draw to define mask",
417
+ width=512, height=512, brush_color='#00FFFF', mask_opacity=0.4, elem_id="input_image")
 
 
418
 
419
  with gr.Row():
420
  sample = gr.Button("🎲 Sample New Model")