Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def initialize_pipeline(model: str, device: str = "cuda"):
|
|
112 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
113 |
return pipe, pipe.scheduler
|
114 |
|
115 |
-
@spaces.GPU(duration=
|
116 |
@torch.no_grad()
|
117 |
def process(num_frames, num_seeds, generator, exp_dir, load_name, caption, lambda_):
|
118 |
pipe_inversion.to(device)
|
@@ -240,7 +240,7 @@ with gr.Blocks(css=css) as demo:
|
|
240 |
)
|
241 |
|
242 |
with gr.Accordion("Advanced options", open=False):
|
243 |
-
num_gifs = gr.Slider(label="num_gifs", value=
|
244 |
num_frames = gr.Slider(label="num_frames", value=10, minimum=5, maximum=50, step=1)
|
245 |
lambda_value = gr.Slider(label="lambda", value=0, minimum=0, maximum=1, step=0.1)
|
246 |
|
|
|
112 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
113 |
return pipe, pipe.scheduler
|
114 |
|
115 |
+
@spaces.GPU(duration=120)
|
116 |
@torch.no_grad()
|
117 |
def process(num_frames, num_seeds, generator, exp_dir, load_name, caption, lambda_):
|
118 |
pipe_inversion.to(device)
|
|
|
240 |
)
|
241 |
|
242 |
with gr.Accordion("Advanced options", open=False):
|
243 |
+
num_gifs = gr.Slider(label="num_gifs", value=1, minimum=1, maximum=10, step=1)
|
244 |
num_frames = gr.Slider(label="num_frames", value=10, minimum=5, maximum=50, step=1)
|
245 |
lambda_value = gr.Slider(label="lambda", value=0, minimum=0, maximum=1, step=0.1)
|
246 |
|