#!/bin/bash # Ensure we are in the script directory cd "$(dirname "$0")" # Check if virtual environment exists if [ ! -d "venv" ]; then echo "Creating virtual environment..." python3 -m venv venv source venv/bin/activate pip install -r requirements.txt else source venv/bin/activate fi echo "Starting NecroHash WebGUI..." # Run with gunicorn for production or python directly for dev. # Using python for simplicity as requested on Pi 1 python app.py