File size: 402 Bytes
8fa2d24
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from huggingface_hub import HfApi
import os

api = HfApi(token=os.getenv("HF_TOKEN"))
api.upload_folder(
    folder_path="Predictive_Maintenance/deployment",     # the local folder containing your files
    # replace with your repoid
    repo_id="Roshanmpraj/PredictiveMaintenance",          # the target repo

    repo_type="space",                    
    path_in_repo="",                         
)