jbilcke-hf HF Staff commited on
Commit
923cdcc
Β·
verified Β·
1 Parent(s): 969f4db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -30
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
- 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,7 +495,7 @@ if __name__ == "__main__":
495
  shutil.rmtree("gradio_tmp")
496
  os.makedirs("gradio_tmp", exist_ok=True)
497
 
498
- print("πŸš€ Starting Self-Forcing Streaming Demo")
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}")