Spaces:
Sleeping
Sleeping
Download push_space.py from random70249/FlakeForge: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/spaces/random70249/FlakeForge/resolve/main/push_space.py
- Command line
-
hf download hf://spaces/random70249/FlakeForge/push_space.py
-
curl -L -o push_space.py https://huggingface.co/spaces/random70249/FlakeForge/resolve/main/push_space.py
247 Bytes
| def push_space(): | |
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| api.upload_folder( | |
| folder_path=".", | |
| repo_id="Aayush5665/FlakeForge", | |
| repo_type="space", | |
| ) | |
| # after training finishes | |
| push_space() |