Spaces:
Sleeping
Sleeping
File size: 790 Bytes
c7e9899 | 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 | #!/bin/bash
# Alternative simple run script using uv pip directly
# 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
# Install dependencies if needed
echo -e "${BLUE}π¦ Checking dependencies...${NC}"
uv pip install -q -r requirements.txt
# Run the Streamlit app
echo -e "${GREEN}β
Starting Streamlit app...${NC}"
echo -e "${BLUE}π The app will open at http://localhost:8501${NC}"
echo ""
uv run streamlit run app.py
# If the app exits
echo -e "${BLUE}π App stopped.${NC}" |