line-detection / run_simple.sh
AKA Math
Update demo
9a67d72
Raw
History Blame Contribute Delete
796 Bytes
#!/bin/bash
# Simple script to run the Streamlit app locally
echo "πŸ“ Starting Hough Transform & RANSAC Line Detection Demo..."
echo ""
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "πŸ“¦ No virtual environment found. Creating one..."
python3 -m venv venv
fi
# Activate virtual environment
echo "πŸ”§ Activating virtual environment..."
source venv/bin/activate
# Install requirements if needed
if [ ! -f "venv/.requirements_installed" ]; then
echo "πŸ“₯ Installing dependencies..."
pip install -r requirements.txt
touch venv/.requirements_installed
else
echo "βœ… Dependencies already installed"
fi
# Run the app
echo ""
echo "πŸš€ Launching Streamlit app..."
echo " Open your browser to http://localhost:8501"
echo ""
streamlit run app.py