Spaces:
Sleeping
Sleeping
| # 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 | |