QY-H00
commited on
Commit
·
93eab56
1
Parent(s):
1734567
update
Browse files
app.py
CHANGED
|
@@ -21,6 +21,7 @@ title = r"""
|
|
| 21 |
|
| 22 |
description = r"""
|
| 23 |
<b>Official 🤗 Gradio demo</b> for <a href='https://github.com/QY-H00/attention-interpolation-diffusion/tree/public' target='_blank'><b>PAID: (Prompt-guided) Attention Interpolation of Text-to-Image Diffusion</b></a>.<br>
|
|
|
|
| 24 |
How to use:<br>
|
| 25 |
1. Input prompt 1, prompt 2 and negative prompt.
|
| 26 |
2. For <b> Compositional Generation </b> Input the guidance prompt and choose the one you are satisfied!
|
|
@@ -362,10 +363,10 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 362 |
)
|
| 363 |
|
| 364 |
with gr.Group():
|
| 365 |
-
with gr.Row(
|
| 366 |
-
image_prompt1 = gr.Image(label="Image Prompt 1 (Optional)", interactive=True
|
| 367 |
-
image_prompt2 = gr.Image(label="Image Prompt 2 (Optional)", interactive=True
|
| 368 |
-
with gr.Row(
|
| 369 |
model_choice = gr.Dropdown(
|
| 370 |
["RealVis-v4.0", "SD1.4-512", "SD1.5-512", "SD2.1-768", "AOM3", "SDXL-1024", "Playground-XL-v2", "Juggernaut-XL-v9"],
|
| 371 |
label="Model",
|
|
|
|
| 21 |
|
| 22 |
description = r"""
|
| 23 |
<b>Official 🤗 Gradio demo</b> for <a href='https://github.com/QY-H00/attention-interpolation-diffusion/tree/public' target='_blank'><b>PAID: (Prompt-guided) Attention Interpolation of Text-to-Image Diffusion</b></a>.<br>
|
| 24 |
+
We strongly recommend to deploy this demo locally with GPU resources for better experience.
|
| 25 |
How to use:<br>
|
| 26 |
1. Input prompt 1, prompt 2 and negative prompt.
|
| 27 |
2. For <b> Compositional Generation </b> Input the guidance prompt and choose the one you are satisfied!
|
|
|
|
| 363 |
)
|
| 364 |
|
| 365 |
with gr.Group():
|
| 366 |
+
with gr.Row():
|
| 367 |
+
image_prompt1 = gr.Image(label="Image Prompt 1 (Optional)", interactive=True)
|
| 368 |
+
image_prompt2 = gr.Image(label="Image Prompt 2 (Optional)", interactive=True)
|
| 369 |
+
with gr.Row():
|
| 370 |
model_choice = gr.Dropdown(
|
| 371 |
["RealVis-v4.0", "SD1.4-512", "SD1.5-512", "SD2.1-768", "AOM3", "SDXL-1024", "Playground-XL-v2", "Juggernaut-XL-v9"],
|
| 372 |
label="Model",
|