Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,7 +127,7 @@ def check_duration(
|
|
| 127 |
progress
|
| 128 |
):
|
| 129 |
if use_distill and resolution=="480p":
|
| 130 |
-
return
|
| 131 |
elif resolution=="720p":
|
| 132 |
return 360
|
| 133 |
else:
|
|
@@ -256,7 +256,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 256 |
distill_i2v = gr.Checkbox(label="Use Distill Mode", value=True, info="Faster, lower quality base generation.")
|
| 257 |
refine_i2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
|
| 258 |
|
| 259 |
-
i2v_button = gr.Button("Generate
|
| 260 |
with gr.Column(scale=3):
|
| 261 |
video_output_i2v = gr.Video(label="Generated Video", interactive=False)
|
| 262 |
|
|
|
|
| 127 |
progress
|
| 128 |
):
|
| 129 |
if use_distill and resolution=="480p":
|
| 130 |
+
return 180
|
| 131 |
elif resolution=="720p":
|
| 132 |
return 360
|
| 133 |
else:
|
|
|
|
| 256 |
distill_i2v = gr.Checkbox(label="Use Distill Mode", value=True, info="Faster, lower quality base generation.")
|
| 257 |
refine_i2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
|
| 258 |
|
| 259 |
+
i2v_button = gr.Button("Generate 6s video", variant="primary")
|
| 260 |
with gr.Column(scale=3):
|
| 261 |
video_output_i2v = gr.Video(label="Generated Video", interactive=False)
|
| 262 |
|