import os
# 修改为镜像源
# os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'

from huggingface_hub import snapshot_download

snapshot_download(
  repo_id="LanguageBind/Open-Sora-Plan-v1.2.0",
#   repo_type="dataset",
  local_dir="./93x480p",
  allow_patterns=['93x480p/*'],
  local_dir_use_symlinks=False,
  resume_download=True,
#   proxies={"https": "http://localhost:7890"}, # clash default port
  max_workers=8
)
