Spaces:
Runtime error
Runtime error
Update app.py
Browse files135 unmodified lines136137138139140141142143144145135 unmodified lines).frames[0]# Export to videovideo_path = "output.mp4"export_to_video(video, video_path, fps=24)with open(video_path, "rb") as video_file:video_bytes = video_file.read()return video_bytes@torch.inference_mode()def call_pipe(pipe,135 unmodified lines136137138139140141142143144145146135 unmodified lines).frames[0]# Export to videovideo_path = "output.mp4"video_bytes = io.BytesIO()export_to_video(video, video_bytes, fps=24)video_bytes.seek(0) # Reset the file pointer to the beginningreturn video_bytes@torch.inference_mode()def call_pipe(pipe,
app.py+4-3