2d-predictor / run.sh
alaka's picture
init
0b9b583
Raw
History Blame Contribute Delete
838 Bytes
#!/bin/bash
# Simple script to run the NeuralFoil Gradio app
echo "πŸš€ Starting NeuralFoil Airfoil Predictor..."
echo ""
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "❌ Virtual environment not found!"
echo "Please run: python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt"
exit 1
fi
# Activate virtual environment
source venv/bin/activate
# Check if dependencies are installed
python -c "import gradio, neuralfoil" 2>/dev/null
if [ $? -ne 0 ]; then
echo "❌ Dependencies not installed!"
echo "Please run: pip install -r requirements.txt"
exit 1
fi
echo "βœ… Virtual environment activated"
echo "βœ… Dependencies found"
echo ""
echo "πŸ“Š Launching Gradio app..."
echo "⏳ First startup may take 30-60 seconds..."
echo ""
# Run the app
python app.py