quantum-ai / deploy_check.sh
Ben
Clean deploy - only essential files for Gradio UI
4a9cdf6
Raw
History Blame Contribute Delete
2.3 kB
#!/bin/bash
# πŸš€ Quick Deploy Script for JARVIS Quantum AI Suite
# Just run this script to test everything before deployment
echo "🌌 JARVIS Quantum AI Suite - Pre-Deployment Check"
echo "=================================================="
echo
# Check if all required files exist
echo "πŸ“‹ Checking required files..."
required_files=(
"app.py"
"requirements.txt"
"src/"
"gradio_quantum_cancer_demo.py"
"jarvis_v1_gradio_space.py"
"README.md"
"LICENSE"
)
for file in "${required_files[@]}"; do
if [ -e "$file" ]; then
echo "βœ… $file"
else
echo "❌ $file - MISSING"
exit 1
fi
done
echo
echo "πŸ” Checking source directory structure..."
src_dirs=(
"src/quantum_llm/"
"src/thought_compression/"
"src/core/"
"src/bio_knowledge/"
"src/multiversal/"
"src/quantum/"
)
for dir in "${src_dirs[@]}"; do
if [ -d "$dir" ]; then
echo "βœ… $dir"
else
echo "❌ $dir - MISSING"
exit 1
fi
done
echo
echo "πŸ“ Checking file contents..."
# Check if app.py has the right structure
if grep -q "def create_interface" app.py; then
echo "βœ… app.py - Has main interface function"
else
echo "❌ app.py - Missing main interface function"
exit 1
fi
# Check if requirements.txt has right dependencies
if grep -q "gradio" requirements.txt; then
echo "βœ… requirements.txt - Has gradio dependency"
else
echo "❌ requirements.txt - Missing gradio dependency"
exit 1
fi
echo
echo "🎯 Deployment Checklist:"
echo "βœ… All required files present"
echo "βœ… Source code structure correct"
echo "βœ… Dependencies properly specified"
echo "βœ… Ready for Hugging Face Spaces!"
echo
echo "πŸš€ Next Steps:"
echo "1. Go to https://huggingface.co/spaces"
echo "2. Create new Space β†’ Select 'Gradio' SDK"
echo "3. Upload ALL files from this folder"
echo "4. Wait 2-5 minutes for auto-build"
echo "5. Your quantum AI platform will be live! πŸŽ‰"
echo
echo "πŸ“š Documentation:"
echo "- README_HF_SPACES.md - Detailed deployment guide"
echo "- DEPLOYMENT_SUMMARY.md - Complete overview"
echo "- test_deployment.py - Run this locally to test (if you have dependencies installed)"
echo
echo "βš›οΈ Built with 🧠 for real science. Real research. Real quantum mechanics."