Spaces:
Runtime error
Runtime error
| # 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 | |