TenPoisk commited on
Commit ·
7103f52
1
Parent(s): f7b53f5
Update app.py
Browse files1234567891011import torchfrom diffusers import DiffusionPipeline, DPMSolverMultistepSchedulerfrom diffusers.utils import export_to_videopipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float16)pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)pipe.enable_model_cpu_offload()prompt = "Darth Vader is surfing on waves"video_frames = pipe(prompt, num_inference_steps=40, height=320, width=576, num_frames=24).framesvideo_path = export_to_video(video_frames)12345678import gradio as grimport tkinterdescription = """<div>PICSCORE BETA-1</div>"""gr.Interface.load("cerspense/zeroscope_v2_576w", description=description).launch()
app.py+7-10