multimodalart HF Staff commited on
Commit
5fca4b4
·
verified ·
1 Parent(s): aa5e39d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -320,9 +320,9 @@ def video_generation_handler(prompt, seed, fps):
320
  yield None, None, error_status_html
321
 
322
  # --- Gradio UI Layout ---
323
- with gr.Blocks(theme=gr.themes.Soft(), 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*")
326
 
327
  with gr.Row():
328
  with gr.Column(scale=2):
@@ -332,13 +332,15 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Self-Forcing Frame Streaming Demo"
332
  label="Prompt",
333
  placeholder="A stylish woman walks down a Tokyo street...",
334
  lines=4,
335
- value="A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage."
336
  )
337
  gr.Examples(
338
  examples=[
339
- "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse.",
340
- "A white and orange tabby cat is seen happily darting through a dense garden, as if chasing something. Its eyes are wide and happy as it jogs forward, scanning the branches, flowers, and leaves.",
341
- "A drone shot of a surfer riding a wave on a sunny day. The camera follows the surfer as they carve through the water.",
 
 
342
  ],
343
  inputs=[prompt]
344
  )
 
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)")
326
 
327
  with gr.Row():
328
  with gr.Column(scale=2):
 
332
  label="Prompt",
333
  placeholder="A stylish woman walks down a Tokyo street...",
334
  lines=4,
335
+ value=""
336
  )
337
  gr.Examples(
338
  examples=[
339
+ "A close-up shot of a ceramic teacup slowly pouring water into a glass mug. The water flows smoothly from the spout of the teacup into the mug, creating gentle ripples as it fills up. Both cups have detailed textures, with the teacup having a matte finish and the glass mug showcasing clear transparency. The background is a blurred kitchen countertop, adding context without distracting from the central action. The pouring motion is fluid and natural, emphasizing the interaction between the two cups.",
340
+ "A playful capybara is seen playing an electronic guitar, strumming the strings with its front paws. The raccoon has distinctive black facial markings and a bushy tail. It sits comfortably on a small stool, its body slightly tilted as it focuses intently on the instrument. The setting is a cozy, dimly lit room with vintage posters on the walls, adding a retro vibe. The raccoon's expressive eyes convey a sense of joy and concentration. Medium close-up shot, focusing on the raccoon's face and hands interacting with the guitar.
341
+ ",
342
+ "A dynamic over-the-shoulder perspective of a chef meticulously plating a dish in a bustling kitchen. The chef, a middle-aged man with a neatly trimmed beard and focused expression, deftly arranges ingredients on a pristine white plate. His hands move with precision, each gesture deliberate and practiced. The background shows a crowded kitchen with steaming pots, whirring blenders, and the clatter of utensils. Bright lights highlight the scene, casting shadows across the busy workspace. The camera angle captures the chef's detailed work from behind, emphasizing his skill and dedication.
343
+ ",
344
  ],
345
  inputs=[prompt]
346
  )