Spaces:
Build error
Build error
Download .github/scripts/deploy.py from ArunKr/autonomy-labs: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/ArunKr/autonomy-labs/resolve/main/.github/scripts/deploy.py
- Command line
-
hf download hf://spaces/ArunKr/autonomy-labs/.github/scripts/deploy.py
-
curl -L -o deploy.py https://huggingface.co/spaces/ArunKr/autonomy-labs/resolve/main/.github/scripts/deploy.py
380 Bytes
| import os | |
| from huggingface_hub import HfApi | |
| token = os.environ["HF_TOKEN"] | |
| repo_id = "ArunKr/autonomy-labs" | |
| api = HfApi(token=token) | |
| # Ensure the repository exists | |
| api.create_repo( | |
| repo_id=repo_id, | |
| repo_type="space", | |
| exist_ok=True, | |
| space_sdk="docker" | |
| ) | |
| # Upload the folder | |
| api.upload_folder( | |
| repo_id=repo_id, | |
| folder_path=".", | |
| repo_type="space", | |
| ) | |