template-matching / run_local.sh
AKA Math
updated deployment scripts
7500864
Raw
History Blame Contribute Delete
857 Bytes
#!/bin/bash
# Script to run the Streamlit app locally
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo -e "${BLUE}πŸš€ Starting Template Matching Demo locally...${NC}"
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo "❌ uv is not installed. Please install it first:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
exit 1
fi
# Sync dependencies with uv (no build isolation for script-based apps)
echo -e "${BLUE}πŸ“¦ Syncing dependencies with uv...${NC}"
uv sync --no-build-isolation
# Run the Streamlit app
echo -e "${GREEN}βœ… Dependencies synced. Starting Streamlit app...${NC}"
echo -e "${BLUE}🌐 The app will open at http://localhost:8501${NC}"
echo ""
uv run --no-build-isolation streamlit run app.py
# If the app exits
echo -e "${BLUE}πŸ‘‹ App stopped.${NC}"