#!/bin/bash # Simple script to run the Streamlit app locally echo "🎨 Starting Colorspace Explorer..." echo "" # Check if virtual environment exists if [ ! -d "venv" ]; then echo "📦 No virtual environment found. Creating one..." python3 -m venv venv fi # Activate virtual environment echo "🔧 Activating virtual environment..." source venv/bin/activate # Install requirements if needed if [ ! -f "venv/.requirements_installed" ]; then echo "📥 Installing dependencies..." pip install -r requirements.txt touch venv/.requirements_installed else echo "✅ Dependencies already installed" fi # Run the app echo "" echo "🚀 Launching Streamlit app..." echo " Open your browser to http://localhost:8501" echo "" streamlit run app.py