Spaces:
Sleeping
Sleeping
Download deploy_to_hf.py from Diaure/Futurisys_API_ML: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/spaces/Diaure/Futurisys_API_ML/resolve/main/deploy_to_hf.py
- Command line
-
hf download hf://spaces/Diaure/Futurisys_API_ML/deploy_to_hf.py
-
curl -L -o deploy_to_hf.py https://huggingface.co/spaces/Diaure/Futurisys_API_ML/resolve/main/deploy_to_hf.py
372 Bytes
| from huggingface_hub import HfApi | |
| import os | |
| api = HfApi() | |
| api.upload_folder( | |
| folder_path=".", | |
| repo_id="Diaure/Futurisys_API_ML", | |
| repo_type="space", | |
| token=os.environ["HF_TOKEN"], | |
| commit_message="CD: update from GitHub main", | |
| ignore_patterns=[".git/*", ".github/*", "tests/*", "__pycache__/*", | |
| "*.pyc", ".venv/*", "venv/*" ]) | |