Spaces:
Build error
Build error
| .PHONY: help setup install run clean deploy status test | |
| help: | |
| @echo "π Hough Transform & RANSAC Line Detection - Available Commands:" | |
| @echo "" | |
| @echo " make setup - Set up virtual environment and install dependencies" | |
| @echo " make install - Install/update dependencies only" | |
| @echo " make run - Run the Streamlit app locally" | |
| @echo " make clean - Remove virtual environment and cache files" | |
| @echo " make deploy - Deploy to Hugging Face Spaces" | |
| @echo " make status - Check deployment status" | |
| @echo " make test - Run basic tests (if any)" | |
| @echo "" | |
| setup: | |
| @echo "π§ Setting up environment..." | |
| @./setup.sh | |
| install: | |
| @echo "π₯ Installing dependencies..." | |
| @if [ ! -d ".venv" ]; then \ | |
| echo "β Virtual environment not found. Run 'make setup' first."; \ | |
| exit 1; \ | |
| fi | |
| @. .venv/bin/activate && pip install -r requirements.txt | |
| @echo "β Dependencies installed" | |
| run: | |
| @echo "π Starting Streamlit app..." | |
| @if [ ! -d ".venv" ]; then \ | |
| echo "β Virtual environment not found. Run 'make setup' first."; \ | |
| exit 1; \ | |
| fi | |
| @. .venv/bin/activate && streamlit run app.py | |
| clean: | |
| @echo "π§Ή Cleaning up..." | |
| @rm -rf .venv | |
| @rm -rf __pycache__ | |
| @rm -rf .streamlit | |
| @find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true | |
| @find . -type f -name "*.pyc" -delete | |
| @echo "β Cleanup complete" | |
| deploy: | |
| @echo "π Deploying to Hugging Face Spaces..." | |
| @./deploy.sh | |
| status: | |
| @./check_status.sh | |
| test: | |
| @echo "π§ͺ Running tests..." | |
| @if [ ! -d ".venv" ]; then \ | |
| echo "β Virtual environment not found. Run 'make setup' first."; \ | |
| exit 1; \ | |
| fi | |
| @. .venv/bin/activate && python -c "import app; print('β App imports successfully')" | |
| @echo "β Basic tests passed" | |