Spaces:
Sleeping
Sleeping
| echo "Starting POA Graph Web Interface..." | |
| # Check if Python is installed | |
| if ! command -v python3 &> /dev/null; then | |
| echo "Error: Python 3 is not installed or not in PATH" | |
| exit 1 | |
| fi | |
| # Check if we're in the right directory | |
| if [ ! -f "server.py" ]; then | |
| echo "Error: server.py not found. Please run this script from the web_interface directory." | |
| exit 1 | |
| fi | |
| # Install dependencies if requirements.txt exists | |
| if [ -f "requirements.txt" ]; then | |
| echo "Installing dependencies..." | |
| pip3 install -r requirements.txt | |
| fi | |
| # Start the server | |
| echo "Starting server on http://localhost:5000" | |
| echo "Press Ctrl+C to stop the server" | |
| python3 server.py | |