Spaces:
Runtime error
Runtime error
Download hosting.py from Roshanmpraj/PredictiveMaintenance: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/spaces/Roshanmpraj/PredictiveMaintenance/resolve/main/hosting.py
- Command line
-
hf download hf://spaces/Roshanmpraj/PredictiveMaintenance/hosting.py
-
curl -L -o hosting.py https://huggingface.co/spaces/Roshanmpraj/PredictiveMaintenance/resolve/main/hosting.py
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="", | |
| ) | |