File size: 1,123 Bytes
e9cd410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/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