File size: 773 Bytes
813ae46 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/bash
# Deploy to Hugging Face Space
# Usage: ./deploy.sh [space-name] [commit-message]
SPACE_NAME=${1:-"royashish/AgentAI"}
COMMIT_MSG=${2:-"Update AgentAI with LLM integration"}
echo "π Deploying to Hugging Face Space: $SPACE_NAME"
# Check if git is initialized
if [ ! -d ".git" ]; then
echo "π Initializing git repository..."
git init
git remote add origin https://huggingface.co/spaces/$SPACE_NAME
fi
# Add all files
echo "π¦ Adding files..."
git add .
# Commit changes
echo "πΎ Committing changes..."
git commit -m "$COMMIT_MSG"
# Push to HF Space
echo "π Pushing to Hugging Face Space..."
git push origin main
echo "β
Deployment complete!"
echo "π Your space will be available at: https://huggingface.co/spaces/$SPACE_NAME" |