Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -320,6 +320,13 @@ def video_generation_handler(prompt, seed=42, fps=15):
|
|
320 |
yield None, None, error_status_html
|
321 |
|
322 |
# --- Gradio UI Layout ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
with gr.Blocks(title="Self-Forcing Frame Streaming Demo") as demo:
|
324 |
gr.Markdown("# 🚀 Self-Forcing Video Generation with Frame Streaming")
|
325 |
gr.Markdown("Real-time video generation with frame-by-frame display. [[Model]](https://huggingface.co/gdhe17/Self-Forcing), [[Project page]](https://self-forcing.github.io), [[Paper]](https://huggingface.co/papers/2506.08009)")
|
@@ -363,13 +370,7 @@ with gr.Blocks(title="Self-Forcing Frame Streaming Demo") as demo:
|
|
363 |
gr.Markdown("### 📺 Live Frame Stream")
|
364 |
gr.Markdown("*Click 'Start Generation' to begin frame streaming*")
|
365 |
|
366 |
-
frame_display
|
367 |
-
label="Generated Frames",
|
368 |
-
height=480,
|
369 |
-
width=832,
|
370 |
-
show_label=True,
|
371 |
-
container=True
|
372 |
-
)
|
373 |
|
374 |
final_video = gr.Video(
|
375 |
label="Final Rendered Video",
|
|
|
320 |
yield None, None, error_status_html
|
321 |
|
322 |
# --- Gradio UI Layout ---
|
323 |
+
frame_display = gr.Image(
|
324 |
+
label="Generated Frames",
|
325 |
+
height=480,
|
326 |
+
width=832,
|
327 |
+
show_label=True,
|
328 |
+
container=True
|
329 |
+
)
|
330 |
with gr.Blocks(title="Self-Forcing Frame Streaming Demo") as demo:
|
331 |
gr.Markdown("# 🚀 Self-Forcing Video Generation with Frame Streaming")
|
332 |
gr.Markdown("Real-time video generation with frame-by-frame display. [[Model]](https://huggingface.co/gdhe17/Self-Forcing), [[Project page]](https://self-forcing.github.io), [[Paper]](https://huggingface.co/papers/2506.08009)")
|
|
|
370 |
gr.Markdown("### 📺 Live Frame Stream")
|
371 |
gr.Markdown("*Click 'Start Generation' to begin frame streaming*")
|
372 |
|
373 |
+
frame_display.render()
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
|
375 |
final_video = gr.Video(
|
376 |
label="Final Rendered Video",
|