| # Check if virtual environment exists, if not create it | |
| if [ ! -d "venv" ]; then | |
| echo "Creating virtual environment..." | |
| python -m venv venv | |
| fi | |
| # Activate virtual environment | |
| source venv/bin/activate | |
| # Install requirements | |
| echo "Installing requirements..." | |
| pip install -r requirements.txt | |
| # Run the app | |
| echo "Starting AI Life Coach..." | |
| streamlit run app.py | |