Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files1028 unmodified lines1029103010311032103310342 unmodified lines10371038103910401041104210431044104510461047104810496 unmodified lines10561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107918 unmodified lines109810991100110111021103110423 unmodified lines11281129113011311028 unmodified lines.main-title { text-align: center; margin-bottom: 0.5em; }.generate-btn { min-height: 52px !important; font-size: 1.1em !important; }footer { display: none !important; }"""purple_citrus = gr.themes.Citrus(2 unmodified linesneutral_hue=gr.themes.colors.gray,)with gr.Blocks(title="LTX 2.3 Move") as demo:gr.Markdown("<h1 class='main-title'>LTX 2.3 Move</h1>")# Hidden state β preprocessing is always Posevideo_preprocess = gr.State("Pose (DWPose)")with gr.Row(equal_height=True):# ββ Left column: inputs ββββββββββββββββββββββββββββββββββββββwith gr.Column(scale=1):with gr.Row():6 unmodified linestype="filepath",)prompt = gr.Textbox(label="Prompt",value="Make this come alive with cinematic motion, smooth animation",lines=2,placeholder="Describe the style, motion, and content you want...",)with gr.Row():duration = gr.Slider(label="Duration (s)", minimum=1.0, maximum=10.0, value=3.0, step=0.1,)enhance_prompt = gr.Checkbox(label="Enhance Prompt", value=True)generate_btn = gr.Button("Generate", variant="primary", size="lg", elem_classes=["generate-btn"],)with gr.Accordion("Advanced Settings", open=False):conditioning_strength = gr.Slider(label="V2V Conditioning Strength",info="How closely to follow the reference video's structure",18 unmodified lines# ββ Right column: output βββββββββββββββββββββββββββββββββββββwith gr.Column(scale=1):output_video = gr.Video(label="Result", autoplay=True)# ββ Event handlers βββββββββββββββββββββββββββββββββββββββββββββββββββinput_image.change(23 unmodified linesif __name__ == "__main__":demo.launch(css=css, theme=purple_citrus)1028 unmodified lines10291030103110321033103410352 unmodified lines10381039104010411042104310441045104610471048104910506 unmodified lines10571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108318 unmodified lines110211031104110511061107110823 unmodified lines11321133113411351028 unmodified lines.main-title { text-align: center; margin-bottom: 0.5em; }.generate-btn { min-height: 52px !important; font-size: 1.1em !important; }footer { display: none !important; }video { object-fit: contain !important; }"""purple_citrus = gr.themes.Citrus(2 unmodified linesneutral_hue=gr.themes.colors.gray,)with gr.Blocks(title="LTX 2.3 Move", css=css, theme=purple_citrus) as demo:gr.Markdown("<h1 class='main-title'>LTX 2.3 Move</h1>")# Hidden state β preprocessing is always Posevideo_preprocess = gr.State("Pose (DWPose)")with gr.Row():# ββ Left column: inputs ββββββββββββββββββββββββββββββββββββββwith gr.Column(scale=1):with gr.Row():6 unmodified linestype="filepath",)with gr.Row():duration = gr.Slider(label="Duration (s)", minimum=1.0, maximum=15.0, value=3.0, step=0.5,)generate_btn = gr.Button("Generate", variant="primary", size="lg", elem_classes=["generate-btn"],)with gr.Accordion("Advanced Settings", open=False):prompt = gr.Textbox(label="Prompt",value="Make this come alive with cinematic motion, smooth animation",lines=2,placeholder="Describe the style, motion, and content you want...",)enhance_prompt = gr.Checkbox(label="Enhance Prompt", value=True)conditioning_strength = gr.Slider(label="V2V Conditioning Strength",info="How closely to follow the reference video's structure",18 unmodified lines# ββ Right column: output βββββββββββββββββββββββββββββββββββββwith gr.Column(scale=1):output_video = gr.Video(label="Result", autoplay=True, height=480)# ββ Event handlers βββββββββββββββββββββββββββββββββββββββββββββββββββinput_image.change(23 unmodified linesif __name__ == "__main__":demo.launch()
app.py+16-12