QY-H00
commited on
Commit
·
614bb03
1
Parent(s):
5ad771e
update
Browse files
app.py
CHANGED
|
@@ -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,
|
|
@@ -392,15 +392,15 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 392 |
interpolation_size = gr.Slider(
|
| 393 |
label="Interpolation Size",
|
| 394 |
minimum=3,
|
| 395 |
-
maximum=
|
| 396 |
step=1,
|
| 397 |
value=3,
|
| 398 |
info="Interpolation size includes the start and end images",
|
| 399 |
)
|
| 400 |
exploration_size = gr.Slider(
|
| 401 |
label="Exploration Size",
|
| 402 |
-
minimum=
|
| 403 |
-
maximum=
|
| 404 |
step=1,
|
| 405 |
value=7,
|
| 406 |
info="Exploration size has to be larger than interpolation size",
|
|
|
|
| 245 |
label="Result", show_label=False, rows=1, columns=interpolation_size
|
| 246 |
)
|
| 247 |
|
| 248 |
+
@spaces.GPU(duration=120)
|
| 249 |
@torch.no_grad()
|
| 250 |
def generate(
|
| 251 |
prompt1,
|
|
|
|
| 392 |
interpolation_size = gr.Slider(
|
| 393 |
label="Interpolation Size",
|
| 394 |
minimum=3,
|
| 395 |
+
maximum=5,
|
| 396 |
step=1,
|
| 397 |
value=3,
|
| 398 |
info="Interpolation size includes the start and end images",
|
| 399 |
)
|
| 400 |
exploration_size = gr.Slider(
|
| 401 |
label="Exploration Size",
|
| 402 |
+
minimum=5,
|
| 403 |
+
maximum=10,
|
| 404 |
step=1,
|
| 405 |
value=7,
|
| 406 |
info="Exploration size has to be larger than interpolation size",
|