Spaces:
Runtime error
Runtime error
Download deploy.py from Doomshroom/ohio12: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/Doomshroom/ohio12/resolve/main/deploy.py
- Command line
-
hf download hf://spaces/Doomshroom/ohio12/deploy.py
-
curl -L -o deploy.py https://huggingface.co/spaces/Doomshroom/ohio12/resolve/main/deploy.py
416 Bytes
| import os | |
| from pathlib import Path | |
| from huggingface_hub import HfApi | |
| space=os.environ["SPACE_ID"] | |
| token=os.environ["HF_TOKEN"] | |
| root=Path(__file__).resolve().parent | |
| HfApi(token=token).upload_folder(repo_id=space,repo_type="space",folder_path=str(root),ignore_patterns=["*.zip","__pycache__/*",".git/*"],commit_message="Deploy Spatial Vision 3D Ensemble v13") | |
| print(f"Deployed: https://huggingface.co/spaces/{space}") | |