Skip to content

Instantly share code, notes, and snippets.

from huggingface_hub import hf_hub_download, list_repo_files
repo_id = 'Wuvin/Unique3D'
repo_type = "space"
local_dir = "./ckpts"
# 1. List all files in the repository
files = list_repo_files(repo_id=repo_id, repo_type=repo_type)
# 2. Filter files that match your pattern (e.g., start with "ckpt/")