Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
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 |
-
|
558 |
-
|
|
|
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,
|