Atum09's picture
Upload folder using huggingface_hub
767597b verified
#!/bin/bash
echo "πŸš€ OpenClaw Hugging Face Spaces Setup"
echo "====================================="
echo ""
# Check if git is initialized
if [ ! -d ".git" ]; then
echo "πŸ“¦ Initializing git repository..."
git init
else
echo "βœ… Git already initialized"
fi
# Set git config
git config user.email "atum246@users.noreply.github.com"
git config user.name "Atum246"
# Check if remote is set
if git remote get-url origin > /dev/null 2>&1; then
echo "βœ… Git remote already set to: $(git remote get-url origin)"
else
echo "⚠️ No git remote set. Adding..."
git remote add origin https://github.com/Atum246/openclaw-huggingface.git
fi
# Add all files
echo ""
echo "πŸ“ Adding files to git..."
git add .
# Commit
echo ""
echo "πŸ’Ύ Committing changes..."
git commit -m "Initial OpenClaw Hugging Face Spaces setup with auto-backup"
echo ""
echo "βœ… Ready to push!"
echo ""
echo "πŸ“Œ Next steps:"
echo " 1. GitHub repo: https://github.com/Atum246/openclaw-huggingface (will be auto-created)"
echo " 2. Push: git push -u origin main"
echo " 3. Go to Hugging Face and duplicate this Space"
echo ""
echo "πŸ“– See README.md for Hugging Face deployment instructions!"