This commit is contained in:
jack
2026-02-05 10:18:53 +08:00
parent 717f8c1747
commit e8a4b2d318
364 changed files with 453102 additions and 0 deletions
@@ -0,0 +1,34 @@
#!/bin/bash
echo "==================================="
echo "BRAIN Expression Template Decoder"
echo "==================================="
echo
# Check if Python is installed
if ! command -v python3 &> /dev/null && ! command -v python &> /dev/null; then
echo "Error: Python is not installed!"
echo "Please install Python from https://www.python.org/"
exit 1
fi
# Use python3 if available, otherwise fall back to python
if command -v python3 &> /dev/null; then
PYTHON_CMD=python3
else
PYTHON_CMD=python
fi
echo "Starting the application..."
echo "The app will automatically install any missing dependencies."
echo
# Run the Flask application
$PYTHON_CMD app.py
# Check if the app exited with an error
if [ $? -ne 0 ]; then
echo
echo "Application exited with an error."
read -p "Press Enter to continue..."
fi