#!/data/data/com.termux/files/usr/bin/bash # 🔗 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!"