alpr-ocr / Makefile
Japhari's picture
Convert to Gradio and add complete ALPR OCR system
726a8a2
Raw
History Blame Contribute Delete
1.15 kB
.PHONY: help install test clean build run docker-build docker-run deploy
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install dependencies
pip install -r requirements.txt
test: ## Run tests
python -m pytest tests/ -v
clean: ## Clean up build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
build: ## Build the package
python setup.py sdist bdist_wheel
run: ## Run the Gradio app locally
python app.py
docker-build: ## Build Docker image
docker build -t alpr-ocr .
docker-run: ## Run Docker container
docker run -p 7860:7860 alpr-ocr
deploy: ## Deploy to Hugging Face Spaces
@echo "Deploying to Hugging Face Spaces..."
@echo "1. Make sure you have git-lfs installed"
@echo "2. Run: git add . && git commit -m 'Update ALPR OCR system'"
@echo "3. Run: git push origin main"
@echo "4. Your Space will be automatically updated at: https://huggingface.co/spaces/Japhari/alpr-ocr"