Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ import torch
|
|
| 6 |
from diffusers import LTXConditionPipeline, LTXLatentUpsamplePipeline
|
| 7 |
from diffusers.pipelines.ltx.pipeline_ltx_condition import LTXVideoCondition
|
| 8 |
from diffusers.utils import export_to_video, load_video, load_image
|
|
|
|
| 9 |
import numpy as np
|
| 10 |
|
| 11 |
|
|
@@ -177,7 +178,7 @@ with gr.Blocks(css=css, theme=gr.themes.Ocean()) as demo:
|
|
| 177 |
seed = gr.Number(label="seed", value=0, precision=0)
|
| 178 |
randomize_seed = gr.Checkbox(label="randomize seed")
|
| 179 |
with gr.Row():
|
| 180 |
-
guidance_scale= gr.Slider(label="guidance scale", minimum=0, maximum=10, value=
|
| 181 |
steps = gr.Slider(label="Steps", minimum=1, maximum=30, value=8, step=1)
|
| 182 |
num_frames = gr.Slider(label="# frames", minimum=1, maximum=161, value=96, step=1)
|
| 183 |
with gr.Row():
|
|
|
|
| 6 |
from diffusers import LTXConditionPipeline, LTXLatentUpsamplePipeline
|
| 7 |
from diffusers.pipelines.ltx.pipeline_ltx_condition import LTXVideoCondition
|
| 8 |
from diffusers.utils import export_to_video, load_video, load_image
|
| 9 |
+
import random
|
| 10 |
import numpy as np
|
| 11 |
|
| 12 |
|
|
|
|
| 178 |
seed = gr.Number(label="seed", value=0, precision=0)
|
| 179 |
randomize_seed = gr.Checkbox(label="randomize seed")
|
| 180 |
with gr.Row():
|
| 181 |
+
guidance_scale= gr.Slider(label="guidance scale", minimum=0, maximum=10, value=1, step=1)
|
| 182 |
steps = gr.Slider(label="Steps", minimum=1, maximum=30, value=8, step=1)
|
| 183 |
num_frames = gr.Slider(label="# frames", minimum=1, maximum=161, value=96, step=1)
|
| 184 |
with gr.Row():
|