#!/bin/bash # AI Notes Summarizer - Startup Script echo "🚀 Starting AI Notes Summarizer..." # Check if Python is available if ! command -v python3 &> /dev/null; then echo "❌ Python 3 is not installed. Please install Python 3.8 or higher." exit 1 fi # Check if pip is available if ! command -v pip3 &> /dev/null; then echo "❌ pip3 is not installed. Please install pip3." exit 1 fi # Check if virtual environment exists if [ ! -d "venv" ]; then echo "đŸ“Ļ Creating virtual environment..." python3 -m venv venv fi # Activate virtual environment echo "🔧 Activating virtual environment..." source venv/bin/activate # Install requirements if not already installed if [ ! -f "venv/installed" ]; then echo "đŸ“Ĩ Installing dependencies..." pip install -r requirements.txt touch venv/installed echo "✅ Dependencies installed successfully!" fi # Start the application echo "🌟 Launching AI Notes Summarizer..." echo "📱 The application will open in your browser at http://localhost:8501" echo "âšī¸ Press Ctrl+C to stop the application" echo "" streamlit run app.py