| # 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" |