Spaces:
Sleeping
Sleeping
| import os | |
| import sys | |
| import subprocess | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| HF_TOKEN = os.getenv("HF") or os.getenv("HUGGINGFACE_TOKEN") or os.getenv("HUGGINGFACE_HUB_TOKEN") | |
| if not HF_TOKEN: | |
| print("ERROR: No HF token found in environment (.env). Set HF=<your token>") | |
| sys.exit(1) | |
| """ | |
| ARCHIVED: create_space_and_push.py | |
| This helper was useful during initial development but is not required inside | |
| the Space repository. Kept here as an archive placeholder. | |
| """ | |