Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -237,7 +237,7 @@ CSS = """
|
|
| 237 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 238 |
"""
|
| 239 |
|
| 240 |
-
with gr.Blocks(
|
| 241 |
gr.Markdown("""
|
| 242 |
# Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention
|
| 243 |
|
|
@@ -264,10 +264,10 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 264 |
seed = gr.Number(label="Seed", value=42, precision=0)
|
| 265 |
num_frames = gr.Slider(
|
| 266 |
label="Number of frames",
|
| 267 |
-
minimum=
|
| 268 |
maximum=21,
|
| 269 |
value=21,
|
| 270 |
-
step=
|
| 271 |
info="21 frames ≈ 5 seconds at 16fps (short video mode)",
|
| 272 |
)
|
| 273 |
|
|
@@ -291,4 +291,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 291 |
outputs=[output_video, status_text],
|
| 292 |
)
|
| 293 |
|
| 294 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 237 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 238 |
"""
|
| 239 |
|
| 240 |
+
with gr.Blocks() as demo:
|
| 241 |
gr.Markdown("""
|
| 242 |
# Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attention
|
| 243 |
|
|
|
|
| 264 |
seed = gr.Number(label="Seed", value=42, precision=0)
|
| 265 |
num_frames = gr.Slider(
|
| 266 |
label="Number of frames",
|
| 267 |
+
minimum=3,
|
| 268 |
maximum=21,
|
| 269 |
value=21,
|
| 270 |
+
step=3,
|
| 271 |
info="21 frames ≈ 5 seconds at 16fps (short video mode)",
|
| 272 |
)
|
| 273 |
|
|
|
|
| 291 |
outputs=[output_video, status_text],
|
| 292 |
)
|
| 293 |
|
| 294 |
+
demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=CSS)
|