Spaces:
Runtime error
Runtime error
ui
Browse files318 unmodified lines3193203213223233243253263273283293303313323333343353363373 unmodified lines3413423433443453463473483493503513523534 unmodified lines358359360361362363318 unmodified linesnum_frames = gr.Slider(minimum=1, maximum=129, step=1, label="Number of Frames", value=49)with gr.Row():frame1 = gr.Image(label="Frame 1", type="pil")frame2 = gr.Image(label="Frame 2", type="pil")with gr.Row():num_inference_steps = gr.Slider(minimum=1, maximum=100, step=1, label="Number of Inference Steps", value=30)outputs = gr.Video(label="Generated Video")generate_button = gr.Button("Generate Video")generate_button.click(generate_video, inputs=[prompt_textbox, frame1, frame2, resolution, guidance_scale, num_frames, num_inference_steps], outputs=outputs)with gr.Accordion():gr.Markdown("""## dashtoon: HunyuanVideo Keyframe Control Lora is an adapter for HunyuanVideo T2V model for keyframe-based video generation.---**Our architecture builds upon existing models, introducing key enhancements to optimize keyframe-based video generation**:3 unmodified lines## Example Results| Image 1 | Image 2 | Generated Video ||---------|---------|-----------------||  |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/14b7dd1a-1f46-4c4c-b4ec-9d0f948712af.mp4"></video> ||  |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/b00ba193-b3b7-41a1-9bc1-9fdaceba6efa.mp4"></video> ||  |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/0cb84780-4fdf-4ecc-ab48-12e7e1055a39.mp4"></video> ||  |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/ce12156f-0ac2-4d16-b489-37e85c61b5b2.mp4"></video> |## Recommended Settings1. The model works best on human subjects. Single subject images work slightly better.2. It is recommended to use the following image generation resolutions `720x1280`, `544x960`, `1280x720`, `960x544`.4 unmodified lines## FINAL THOUGHTS: This ZeroGPU space, while successfully loaded, has its memory packed to the rim. If you're lucky you may be able to sneak in a small demo inference here and there, but you will most definitely not be using the recommended settings listed above. Help, of course, is not only welcome but very much appreciated. Learn more about our non-profit initiative, [AI Without Borders](https://huggingface.co/aiwithoutborders-xyz), by following us on Huggingface or on [X](http://x.com/borderlesstools), where we will be announcing a handful of exciting developments.""", sanitize_html=False, elem_id="md_footer", container=True)demo.launch(show_error=True)318 unmodified lines3193203213223233243253263273283293303313323333343353363 unmodified lines3403413423433443453463473483493503513523533543553564 unmodified lines361362363364365366367318 unmodified linesnum_frames = gr.Slider(minimum=1, maximum=129, step=1, label="Number of Frames", value=49)with gr.Row():with gr.Column():frame1 = gr.Image(label="Frame 1", type="pil")frame2 = gr.Image(label="Frame 2", type="pil")num_inference_steps = gr.Slider(minimum=1, maximum=100, step=1, label="Number of Inference Steps", value=30)generate_button = gr.Button("Generate Video")with gr.Column():outputs = gr.Video(label="Generated Video")with gr.Accordion():gr.Markdown("""## HunyuanVideo Keyframe Control Lora is an adapter for HunyuanVideo T2V model for keyframe-based video generation.---**Our architecture builds upon existing models, introducing key enhancements to optimize keyframe-based video generation**:3 unmodified lines## Example Results<div>| Image 1 | Image 2 | Generated Video ||---------|---------|-----------------|| <img src="https://content.dashtoon.ai/stability-images/41aeca63-064a-4003-8c8b-bfe2cc80d275.png" > |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/14b7dd1a-1f46-4c4c-b4ec-9d0f948712af.mp4"></video> ||  |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/b00ba193-b3b7-41a1-9bc1-9fdaceba6efa.mp4"></video> ||  |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/0cb84780-4fdf-4ecc-ab48-12e7e1055a39.mp4"></video> ||  |  | <video controls autoplay src="https://content.dashtoon.ai/stability-images/ce12156f-0ac2-4d16-b489-37e85c61b5b2.mp4"></video> |</div>## Recommended Settings1. The model works best on human subjects. Single subject images work slightly better.2. It is recommended to use the following image generation resolutions `720x1280`, `544x960`, `1280x720`, `960x544`.4 unmodified lines## FINAL THOUGHTS: This ZeroGPU space, while successfully loaded, has its memory packed to the rim. If you're lucky you may be able to sneak in a small demo inference here and there, but you will most definitely not be using the recommended settings listed above. Help, of course, is not only welcome but very much appreciated. Learn more about our non-profit initiative, [AI Without Borders](https://huggingface.co/aiwithoutborders-xyz), by following us on Huggingface or on [X](http://x.com/borderlesstools), where we will be announcing a handful of exciting developments.""", sanitize_html=False, elem_id="md_footer", container=True)generate_button.click(generate_video, inputs=[prompt_textbox, frame1, frame2, resolution, guidance_scale, num_frames, num_inference_steps], outputs=outputs)demo.launch(show_error=True)
app.py+14-10