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