Spaces:
Runtime error
Runtime error
Update app.py
Browse files51 unmodified lines525354555657586 unmodified lines6566676869707142 unmodified lines11411511611711811912012151 unmodified linesnum_inference_steps=steps,decode_timestep = 0.05,decode_noise_scale = 0.025,generator=torch.Generator().manual_seed(seed),#output_type="latent",).frameselse:6 unmodified linesnum_inference_steps=steps,decode_timestep = 0.05,decode_noise_scale = 0.025,generator=torch.Generator().manual_seed(seed),#output_type="latent",).frames42 unmodified lines# ).frames[0]# Part 4. Downscale the video to the expected resolutionvideo = [frame.resize((expected_width, expected_height)) for frame in latents[0]]export_to_video(latents, "output.mp4", fps=24)return "output.mp4"51 unmodified lines525354555657586 unmodified lines6566676869707142 unmodified lines11411511611711811912012112251 unmodified linesnum_inference_steps=steps,decode_timestep = 0.05,decode_noise_scale = 0.025,generator=torch.Generator(device="cuda").manual_seed(seed),#output_type="latent",).frameselse:6 unmodified linesnum_inference_steps=steps,decode_timestep = 0.05,decode_noise_scale = 0.025,generator=torch.Generator(device="cuda").manual_seed(seed),#output_type="latent",).frames42 unmodified lines# ).frames[0]# Part 4. Downscale the video to the expected resolution#video = [frame.resize((expected_width, expected_height)) for frame in video]video = [frame.resize((expected_width, expected_height)) for frame in latents[0]]export_to_video(video, "output.mp4", fps=24)return "output.mp4"
app.py+4-3