LPX55 commited on
Commit
054a32e
·
verified ·
1 Parent(s): ff2c6ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -437,6 +437,7 @@ with gr.Blocks(css=css, fill_height=True) as demo:
437
  with gr.Row():
438
  run_button = gr.Button("Generate")
439
  paste_back = gr.Checkbox(True, label="Paste back original")
 
440
  with gr.Row(equal_height=False):
441
  input_image = gr.ImageMask(
442
  type="pil", label="Input Image", layers=True
@@ -492,10 +493,7 @@ with gr.Blocks(css=css, fill_height=True) as demo:
492
  label="Input Image"
493
  )
494
  with gr.Row():
495
- with gr.Column(scale=2):
496
- prompt_input = gr.Textbox(label="Prompt (Optional)")
497
- with gr.Column(scale=1):
498
- runout_button = gr.Button("Generate")
499
  with gr.Row():
500
  target_ratio = gr.Radio(
501
  label="Expected Ratio",
@@ -554,8 +552,9 @@ with gr.Blocks(css=css, fill_height=True) as demo:
554
  value=50,
555
  visible=False
556
  )
557
- with gr.Column():
558
- preview_button = gr.Button("Preview alignment and mask")
 
559
  with gr.Column():
560
  result_outpaint = ImageSlider(
561
  interactive=False,
 
437
  with gr.Row():
438
  run_button = gr.Button("Generate")
439
  paste_back = gr.Checkbox(True, label="Paste back original")
440
+ sam_block()
441
  with gr.Row(equal_height=False):
442
  input_image = gr.ImageMask(
443
  type="pil", label="Input Image", layers=True
 
493
  label="Input Image"
494
  )
495
  with gr.Row():
496
+ prompt_input = gr.Textbox(label="Prompt (Optional)")
 
 
 
497
  with gr.Row():
498
  target_ratio = gr.Radio(
499
  label="Expected Ratio",
 
552
  value=50,
553
  visible=False
554
  )
555
+ with gr.Row():
556
+ preview_button = gr.Button("Preview Alignment")
557
+ runout_button = gr.Button("Generate")
558
  with gr.Column():
559
  result_outpaint = ImageSlider(
560
  interactive=False,