Heavy / run.sh
justinhew
Deploy to HF Spaces
ea81a05
raw
history blame contribute delete
664 Bytes
#!/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