File size: 296 Bytes
17d4058
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from huggingface_hub import HfApi

api = HfApi()

api.upload_large_folder(
    folder_path=".",
    repo_id="simone00/mymodel",
    repo_type="dataset",         # "model", "dataset", or "space"
    num_workers=4,             # parallel uploads — increase if you have good bandwidth
)