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