Spaces:
Configuration error
Configuration error
| # π Hugging Face Sync Script for Henderson Protocol | |
| # Make sure you have your HF token before running (see below) | |
| echo "π Syncing Henderson Protocol with Hugging Face Space..." | |
| # 1οΈβ£ Verify token | |
| if [ -z "$HF_TOKEN" ]; then | |
| echo "β οΈ Hugging Face token not found." | |
| echo "β‘οΈ Run: export HF_TOKEN='your_token_here'" | |
| echo "Then rerun this script." | |
| exit 1 | |
| fi | |
| # 2οΈβ£ Configure git | |
| git config --global user.email "you@example.com" | |
| git config --global user.name "Henderson Protocol" | |
| # 3οΈβ£ Initialize repo if not exists | |
| cd ~/henderson_space || exit | |
| if [ ! -d ".git" ]; then | |
| echo "π¦ Initializing Git repository..." | |
| git init | |
| git remote add origin https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME | |
| fi | |
| # 4οΈβ£ Add, commit, and push | |
| git add . | |
| git commit -m "π Auto-sync update from Termux" | |
| git branch -M main | |
| git push https://$HF_TOKEN@huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME main --force | |
| echo "β Sync complete. Your Henderson Protocol is now live on Hugging Face Space!" | |