Update app.py
Browse files
app.py
CHANGED
@@ -403,35 +403,35 @@ def video_generation_handler_streaming(prompt, seed=42, fps=15, width=400, heigh
|
|
403 |
with gr.Blocks(title="Wan2.1 1.3B Self-Forcing streaming demo") as demo:
|
404 |
gr.Markdown("Real-time video generation with distilled Wan2-1 1.3B [[Model]](https://huggingface.co/gdhe17/Self-Forcing), [[Project page]](https://self-forcing.github.io), [[Paper]](https://huggingface.co/papers/2506.08009)")
|
405 |
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
with gr.Row():
|
436 |
duration = gr.Slider(
|
437 |
label="Duration (seconds)",
|
@@ -495,7 +495,7 @@ if __name__ == "__main__":
|
|
495 |
shutil.rmtree("gradio_tmp")
|
496 |
os.makedirs("gradio_tmp", exist_ok=True)
|
497 |
|
498 |
-
print("π
|
499 |
print(f"π Temporary files will be stored in: gradio_tmp/")
|
500 |
print(f"π― Chunk encoding: PyAV (MPEG-TS/H.264)")
|
501 |
print(f"β‘ GPU acceleration: {gpu}")
|
|
|
403 |
with gr.Blocks(title="Wan2.1 1.3B Self-Forcing streaming demo") as demo:
|
404 |
gr.Markdown("Real-time video generation with distilled Wan2-1 1.3B [[Model]](https://huggingface.co/gdhe17/Self-Forcing), [[Project page]](https://self-forcing.github.io), [[Paper]](https://huggingface.co/papers/2506.08009)")
|
405 |
|
406 |
+
with gr.Row():
|
407 |
+
with gr.Column(scale=2):
|
408 |
+
with gr.Group():
|
409 |
+
prompt = gr.Textbox(
|
410 |
+
label="Prompt",
|
411 |
+
placeholder="A stylish woman walks down a Tokyo street...",
|
412 |
+
lines=4,
|
413 |
+
value=""
|
414 |
+
)
|
415 |
+
start_btn = gr.Button("π¬ Start Streaming", variant="primary", size="lg")
|
416 |
+
|
417 |
+
gr.Markdown("### βοΈ Settings")
|
418 |
+
with gr.Row():
|
419 |
+
seed = gr.Number(
|
420 |
+
label="Seed",
|
421 |
+
value=-1,
|
422 |
+
info="Use -1 for random seed",
|
423 |
+
precision=0
|
424 |
+
)
|
425 |
+
fps = gr.Slider(
|
426 |
+
label="Playback FPS",
|
427 |
+
minimum=1,
|
428 |
+
maximum=30,
|
429 |
+
value=args.fps,
|
430 |
+
step=1,
|
431 |
+
visible=False,
|
432 |
+
info="Frames per second for playback"
|
433 |
+
)
|
434 |
+
|
435 |
with gr.Row():
|
436 |
duration = gr.Slider(
|
437 |
label="Duration (seconds)",
|
|
|
495 |
shutil.rmtree("gradio_tmp")
|
496 |
os.makedirs("gradio_tmp", exist_ok=True)
|
497 |
|
498 |
+
print("π Clapper Rendering Node (default engine is Wan2.1 1.3B Self-Forcing)")
|
499 |
print(f"π Temporary files will be stored in: gradio_tmp/")
|
500 |
print(f"π― Chunk encoding: PyAV (MPEG-TS/H.264)")
|
501 |
print(f"β‘ GPU acceleration: {gpu}")
|