Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -327,6 +327,17 @@ frame_display = gr.Image(
|
|
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)")
|
@@ -369,21 +380,12 @@ with gr.Blocks(title="Self-Forcing Frame Streaming Demo") as demo:
|
|
369 |
with gr.Column(scale=3):
|
370 |
gr.Markdown("### 📺 Live Frame Stream")
|
371 |
gr.Markdown("*Click 'Start Generation' to begin frame streaming*")
|
|
|
|
|
372 |
|
373 |
frame_display.render()
|
374 |
-
|
375 |
-
|
376 |
-
label="Final Rendered Video",
|
377 |
-
visible=False,
|
378 |
-
interactive=False,
|
379 |
-
height=400,
|
380 |
-
autoplay=True
|
381 |
-
)
|
382 |
-
|
383 |
-
status_html = gr.HTML(
|
384 |
-
value="<div style='text-align: center; padding: 20px; color: #666;'>Ready to start generation...</div>",
|
385 |
-
label="Generation Status"
|
386 |
-
)
|
387 |
|
388 |
# Connect the generator to the image display
|
389 |
start_btn.click(
|
|
|
327 |
show_label=True,
|
328 |
container=True
|
329 |
)
|
330 |
+
final_video = gr.Video(
|
331 |
+
label="Final Rendered Video",
|
332 |
+
visible=False,
|
333 |
+
interactive=False,
|
334 |
+
height=400,
|
335 |
+
autoplay=True
|
336 |
+
)
|
337 |
+
status_html = gr.HTML(
|
338 |
+
value="<div style='text-align: center; padding: 20px; color: #666;'>Ready to start generation...</div>",
|
339 |
+
label="Generation Status"
|
340 |
+
)
|
341 |
with gr.Blocks(title="Self-Forcing Frame Streaming Demo") as demo:
|
342 |
gr.Markdown("# 🚀 Self-Forcing Video Generation with Frame Streaming")
|
343 |
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)")
|
|
|
380 |
with gr.Column(scale=3):
|
381 |
gr.Markdown("### 📺 Live Frame Stream")
|
382 |
gr.Markdown("*Click 'Start Generation' to begin frame streaming*")
|
383 |
+
|
384 |
+
final_video.render()
|
385 |
|
386 |
frame_display.render()
|
387 |
+
|
388 |
+
status_html.render()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
|
390 |
# Connect the generator to the image display
|
391 |
start_btn.click(
|