import gradio as gr from model import Model import os on_huggingspace = os.environ.get("SPACE_AUTHOR_NAME") == "PAIR" def create_demo(model: Model): examples = [ ["__assets__/depth_videos_depth/girl_dancing.mp4", "A stormtrooper, masterpiece, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/girl_dancing.mp4", "Oil painting of a catwoman, masterpiece, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/girl_dancing.mp4", "Oil painting of a girl dancing closed eyes, masterpiece, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/woman.mp4", "A robot is dancing in the Sahara desert, detailed, and professional photo"], ["__assets__/depth_videos_depth/woman.mp4", "Wonder woman is dancing, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/woman.mp4", "Oil painting of a girl dancing close-up, masterpiece, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/man.mp4", "An astronaut is Dancing in space, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/man.mp4", "Iron Man is dancing, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/man.mp4", "Spiderman is Dancing, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/halloween.mp4", "Beautiful blonde girl, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/halloween.mp4", "Beautiful brunette girl, a high-quality, detailed, and professional photo"], ["__assets__/depth_videos_depth/halloween.mp4", "Beautiful red-haired girl, a high-quality, detailed, and professional photo"], ] with gr.Blocks() as demo: with gr.Row(): gr.Markdown('## Text and Depth Conditional Video Generation') with gr.Row(): gr.HTML( """