Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -342,30 +342,33 @@ with gr.Blocks(css=css, fill_height=True) as demo:
|
|
342 |
with gr.Tabs():
|
343 |
with gr.TabItem("Inpaint"):
|
344 |
with gr.Column():
|
345 |
-
with gr.Row(
|
346 |
with gr.Column():
|
347 |
prompt = gr.Textbox(
|
348 |
label="Prompt",
|
349 |
info="Describe what to inpaint the mask with",
|
350 |
lines=3,
|
351 |
)
|
352 |
-
|
353 |
-
type="pil", label="Input Image", layers=True
|
354 |
-
)
|
355 |
with gr.Column():
|
356 |
model_selection = gr.Dropdown(
|
357 |
choices=list(MODELS.keys()),
|
358 |
value=default_model_name,
|
359 |
label="Model",
|
360 |
)
|
361 |
-
loading_message = gr.Label(label="Status", value="", visible=False) # Added loading message label
|
362 |
-
result = ImageSlider(
|
363 |
-
interactive=False,
|
364 |
-
label="Generated Image",
|
365 |
-
)
|
366 |
with gr.Row():
|
367 |
run_button = gr.Button("Generate")
|
368 |
paste_back = gr.Checkbox(True, label="Paste back original")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
|
370 |
|
371 |
use_as_input_button = gr.Button("Use as Input Image", visible=False)
|
|
|
342 |
with gr.Tabs():
|
343 |
with gr.TabItem("Inpaint"):
|
344 |
with gr.Column():
|
345 |
+
with gr.Row():
|
346 |
with gr.Column():
|
347 |
prompt = gr.Textbox(
|
348 |
label="Prompt",
|
349 |
info="Describe what to inpaint the mask with",
|
350 |
lines=3,
|
351 |
)
|
352 |
+
|
|
|
|
|
353 |
with gr.Column():
|
354 |
model_selection = gr.Dropdown(
|
355 |
choices=list(MODELS.keys()),
|
356 |
value=default_model_name,
|
357 |
label="Model",
|
358 |
)
|
|
|
|
|
|
|
|
|
|
|
359 |
with gr.Row():
|
360 |
run_button = gr.Button("Generate")
|
361 |
paste_back = gr.Checkbox(True, label="Paste back original")
|
362 |
+
loading_message = gr.Label(label="Status", value="", visible=False) # Added loading message label
|
363 |
+
|
364 |
+
with gr.Row(equal_height=True):
|
365 |
+
input_image = gr.ImageMask(
|
366 |
+
type="pil", label="Input Image", layers=True
|
367 |
+
)
|
368 |
+
result = ImageSlider(
|
369 |
+
interactive=False,
|
370 |
+
label="Generated Image",
|
371 |
+
)
|
372 |
|
373 |
|
374 |
use_as_input_button = gr.Button("Use as Input Image", visible=False)
|