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"