File size: 216 Bytes
5e0bb40
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from huggingface_hub import HfApi
api = HfApi()

api.upload_folder(
    folder_path="./examples",
    repo_id="jingyangcarl/matgen",
    repo_type="space",
    path_in_repo="examples", # Upload to a specific folder
)