QY-H00
commited on
Commit
·
2ee2142
1
Parent(s):
93eab56
update
Browse files
app.py
CHANGED
@@ -21,7 +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 |
-
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!
|
@@ -245,7 +245,7 @@ def dynamic_gallery_fn(interpolation_size: int):
|
|
245 |
label="Result", show_label=False, rows=1, columns=interpolation_size
|
246 |
)
|
247 |
|
248 |
-
@spaces.GPU(duration=
|
249 |
@torch.no_grad()
|
250 |
def generate(
|
251 |
prompt1,
|
|
|
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, especially for XL-series since the GPU resources is limited in this space. <br>
|
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!
|
|
|
245 |
label="Result", show_label=False, rows=1, columns=interpolation_size
|
246 |
)
|
247 |
|
248 |
+
@spaces.GPU(duration=60)
|
249 |
@torch.no_grad()
|
250 |
def generate(
|
251 |
prompt1,
|