Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -246,9 +246,10 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 246 |
with gr.Column(scale=2):
|
| 247 |
image_i2v = gr.Image(type="numpy", label="Input Image")
|
| 248 |
prompt_i2v = gr.Textbox(label="Prompt", lines=4, placeholder="The cat in the image wags its tail and blinks.")
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
|
|
|
| 252 |
seed_i2v = gr.Number(label="Seed", value=42, precision=0)
|
| 253 |
distill_i2v = gr.Checkbox(label="Use Distill Mode", value=False, info="Faster, lower quality base generation.")
|
| 254 |
refine_i2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
|
|
@@ -262,15 +263,17 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 262 |
with gr.Row():
|
| 263 |
with gr.Column(scale=2):
|
| 264 |
prompt_t2v = gr.Textbox(label="Prompt", lines=4, placeholder="A cinematic shot of a Corgi walking on the beach.")
|
| 265 |
-
neg_prompt_t2v = gr.Textbox(label="Negative Prompt", lines=2, value="ugly, blurry, low quality, static, subtitles")
|
| 266 |
-
with gr.Row():
|
| 267 |
-
height_t2v = gr.Slider(label="Height", minimum=256, maximum=1024, value=480, step=64)
|
| 268 |
-
width_t2v = gr.Slider(label="Width", minimum=256, maximum=1024, value=832, step=64)
|
| 269 |
-
with gr.Row():
|
| 270 |
-
seed_t2v = gr.Number(label="Seed", value=42, precision=0)
|
| 271 |
-
distill_t2v = gr.Checkbox(label="Use Distill Mode", value=True, info="Faster, lower quality base generation.")
|
| 272 |
-
refine_t2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
|
| 273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 274 |
t2v_button = gr.Button("Generate Video", variant="primary")
|
| 275 |
with gr.Column(scale=3):
|
| 276 |
video_output_t2v = gr.Video(label="Generated Video", interactive=False)
|
|
|
|
| 246 |
with gr.Column(scale=2):
|
| 247 |
image_i2v = gr.Image(type="numpy", label="Input Image")
|
| 248 |
prompt_i2v = gr.Textbox(label="Prompt", lines=4, placeholder="The cat in the image wags its tail and blinks.")
|
| 249 |
+
|
| 250 |
+
with gr.Accordion(label="Advanced Options", open=False):
|
| 251 |
+
neg_prompt_i2v = gr.Textbox(label="Negative Prompt", lines=2, value="ugly, blurry, low quality, static, subtitles, watermark")
|
| 252 |
+
resolution_i2v = gr.Dropdown(label="Resolution", choices=["480p", "720p"], value="480p")
|
| 253 |
seed_i2v = gr.Number(label="Seed", value=42, precision=0)
|
| 254 |
distill_i2v = gr.Checkbox(label="Use Distill Mode", value=False, info="Faster, lower quality base generation.")
|
| 255 |
refine_i2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
|
|
|
|
| 263 |
with gr.Row():
|
| 264 |
with gr.Column(scale=2):
|
| 265 |
prompt_t2v = gr.Textbox(label="Prompt", lines=4, placeholder="A cinematic shot of a Corgi walking on the beach.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
|
| 267 |
+
with gr.Accordion(label="Advanced Options", open=False):
|
| 268 |
+
neg_prompt_t2v = gr.Textbox(label="Negative Prompt", lines=2, value="ugly, blurry, low quality, static, subtitles")
|
| 269 |
+
with gr.Row():
|
| 270 |
+
height_t2v = gr.Slider(label="Height", minimum=256, maximum=1024, value=480, step=64)
|
| 271 |
+
width_t2v = gr.Slider(label="Width", minimum=256, maximum=1024, value=832, step=64)
|
| 272 |
+
with gr.Row():
|
| 273 |
+
seed_t2v = gr.Number(label="Seed", value=42, precision=0)
|
| 274 |
+
distill_t2v = gr.Checkbox(label="Use Distill Mode", value=True, info="Faster, lower quality base generation.")
|
| 275 |
+
refine_t2v = gr.Checkbox(label="Use Refine Mode", value=False, info="Higher quality & resolution, but slower. Uses Distill mode for its first stage.")
|
| 276 |
+
|
| 277 |
t2v_button = gr.Button("Generate Video", variant="primary")
|
| 278 |
with gr.Column(scale=3):
|
| 279 |
video_output_t2v = gr.Video(label="Generated Video", interactive=False)
|