#!/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