Spaces:
Sleeping
Sleeping
File size: 664 Bytes
ea81a05 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/bash
# Heavy 2.0 - Run Script
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
# Check if venv exists
if [ ! -d "venv" ]; then
echo "β Virtual environment not found!"
echo "Please run setup.sh first:"
echo " bash setup.sh"
exit 1
fi
# Activate virtual environment
echo "π Activating virtual environment..."
source venv/bin/activate
# Run the application
echo "π Starting Heavy 2.0..."
echo "π Open your browser to: http://127.0.0.1:7860"
echo " (or http://localhost:7860)"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
python app.py
|