luna_ocr / deploy.sh
veela4's picture
Upload folder using huggingface_hub
bf237c2 verified
#!/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"