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