Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,8 +130,14 @@ with gr.Blocks() as demo:
|
|
| 130 |
with gr.Column():
|
| 131 |
input_image_component = gr.Image(type="pil", label="Input Image (auto-resized to target H/W)")
|
| 132 |
prompt_input = gr.Textbox(label="Prompt", value=default_prompt_i2v)
|
| 133 |
-
duration_seconds_input = gr.Slider(
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
with gr.Accordion("Advanced Settings", open=False):
|
| 136 |
negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
|
| 137 |
seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)
|
|
|
|
| 130 |
with gr.Column():
|
| 131 |
input_image_component = gr.Image(type="pil", label="Input Image (auto-resized to target H/W)")
|
| 132 |
prompt_input = gr.Textbox(label="Prompt", value=default_prompt_i2v)
|
| 133 |
+
duration_seconds_input = gr.Slider(
|
| 134 |
+
minimum=0.3, # 8 frames ÷ 24fps
|
| 135 |
+
maximum=10.0, # 240 frames ÷ 24fps
|
| 136 |
+
step=0.1,
|
| 137 |
+
value=3, # New default duration
|
| 138 |
+
label="Duration (seconds)",
|
| 139 |
+
info="8-240 frames at 24fps (0.3-10.0 seconds)"
|
| 140 |
+
)
|
| 141 |
with gr.Accordion("Advanced Settings", open=False):
|
| 142 |
negative_prompt_input = gr.Textbox(label="Negative Prompt", value=default_negative_prompt, lines=3)
|
| 143 |
seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)
|