AgentAI / deploy.sh
royashish's picture
Update AgentAI with LLM integration
813ae46
Raw
History Blame Contribute Delete
773 Bytes
#!/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"