Spaces:
Runtime error
Runtime error
Update app.py
Browse files319 unmodified lines3203213223233243253263273283 unmodified lines332333334335336337338339340341342343344319 unmodified linesyield None, None, error_status_html# --- Gradio UI Layout ---with gr.Blocks(theme=gr.themes.Soft(), title="Self-Forcing Frame Streaming Demo") as demo:gr.Markdown("# π Self-Forcing Video Generation with Frame Streaming")gr.Markdown("*Real-time video generation with frame-by-frame display*")with gr.Row():with gr.Column(scale=2):3 unmodified lineslabel="Prompt",placeholder="A stylish woman walks down a Tokyo street...",lines=4,value="A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage.")gr.Examples(examples=["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.","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.","A drone shot of a surfer riding a wave on a sunny day. The camera follows the surfer as they carve through the water.",],inputs=[prompt])319 unmodified lines3203213223233243253263273283 unmodified lines332333334335336337338339340341342343344345346319 unmodified linesyield None, None, error_status_html# --- Gradio UI Layout ---with gr.Blocks(title="Self-Forcing Frame Streaming Demo") as demo:gr.Markdown("# π Self-Forcing Video Generation with Frame Streaming")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)")with gr.Row():with gr.Column(scale=2):3 unmodified lineslabel="Prompt",placeholder="A stylish woman walks down a Tokyo street...",lines=4,value="")gr.Examples(examples=["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.","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.","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.",],inputs=[prompt])
app.py+8-6