Duplicated from guoyww/AnimateDiff
1234567import osimport torchimport randomfrom PIL import Image import gradio as grfrom glob import glob