roshra's picture
Upload folder using huggingface_hub
7aa2f76 verified
raw
history blame contribute delete
415 Bytes
import os
from huggingface_hub import upload_folder
repo_id = "roshra/machine-failure-prediction"
token = os.getenv("HF_TOKEN")
print("πŸš€ Uploading deployment files to Hugging Face Space...")
upload_folder(
folder_path="week_3_mls/deployment",
repo_id=repo_id,
repo_type="space",
token=token
)
print(f"βœ… Deployment pushed successfully β†’ https://huggingface.co/spaces/{repo_id}")