NoteSnap / start.sh
Prateek-044's picture
Upload 24 files
e9cd410 verified
Raw
History Blame Contribute Delete
1.12 kB
#!/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