root commited on
Commit
3761ed8
1 Parent(s): f58a3de

Adjust the layout

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -327,7 +327,7 @@ if __name__ == "__main__":
327
  elem_id="img2img_mask_btn")
328
  img2img_btn_editor = gr.Button("Generate", variant="primary", elem_id="img2img_edit_btn")
329
  gr.Markdown('#### 输入图像')
330
- with gr.Row().style(equal_height=False):
331
  #with gr.Column():
332
  img2img_image_mask = gr.Image(
333
  value=sample_img2img,
@@ -337,7 +337,7 @@ if __name__ == "__main__":
337
  type='pil',
338
  elem_id="img2img_mask",
339
  image_mode="RGBA"
340
- ).style(height=512)
341
  img2img_image_editor = gr.Image(
342
  value=sample_img2img,
343
  source="upload",
 
327
  elem_id="img2img_mask_btn")
328
  img2img_btn_editor = gr.Button("Generate", variant="primary", elem_id="img2img_edit_btn")
329
  gr.Markdown('#### 输入图像')
330
+ with gr.Row().style(equal_height=True):
331
  #with gr.Column():
332
  img2img_image_mask = gr.Image(
333
  value=sample_img2img,
 
337
  type='pil',
338
  elem_id="img2img_mask",
339
  image_mode="RGBA"
340
+ )
341
  img2img_image_editor = gr.Image(
342
  value=sample_img2img,
343
  source="upload",