PredictiveMaintenance / hosting.py
Roshanmpraj's picture
Upload folder using huggingface_hub
8fa2d24 verified
raw
history blame contribute delete
402 Bytes
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="",
)