File size: 1,078 Bytes
bf237c2 | 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 32 33 34 35 | #!/bin/bash
# Luna OCR Deployment Script for Hugging Face Spaces
echo "ππ Deploying Luna OCR to Hugging Face Spaces..."
# Check if git is initialized
if [ ! -d ".git" ]; then
echo "Initializing git repository..."
git init
fi
# Add Hugging Face remote (replace YOUR_USERNAME and YOUR_SPACE_NAME)
echo "Setting up Hugging Face remote..."
echo "Please replace YOUR_USERNAME and YOUR_SPACE_NAME with your actual values"
# git remote add origin https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
# Add all files
echo "Adding files to git..."
git add .
# Commit changes
echo "Committing changes..."
git commit -m "Deploy Luna OCR to Hugging Face Spaces"
# Push to Hugging Face
echo "Pushing to Hugging Face Spaces..."
echo "Run: git push origin main"
echo ""
echo "π Deployment script prepared!"
echo "π Next steps:"
echo "1. Create a new Space on Hugging Face"
echo "2. Set it to 'Docker' runtime"
echo "3. Add your GEMINI_API_KEY as a secret in Space settings"
echo "4. Update the git remote URL in this script"
echo "5. Run: git push origin main" |