Files
qiurui cbfe4a23dc feat: info-privacy PII detection service with frame analysis support
- Pipeline: analyze(), redact(), analyze_image() methods
- API: /analyze, /redact, /analyze/frame, /analyze/frame/base64 endpoints
- Detectors: regex, NER, face (RKNN NPU)
- Privacy frame route added for KVM-Privacy Hub integration
2026-02-28 17:33:11 +08:00

24 lines
551 B
Makefile

.PHONY: install test test-one lint server verify clean
install:
bash setup_venv.sh
test:
source venv/bin/activate && pytest tests/ -v
test-one:
source venv/bin/activate && pytest $(FILE) -v
lint:
source venv/bin/activate && ruff check src/
server:
source venv/bin/activate && uvicorn info_privacy.api.main:app --host 0.0.0.0 --port 8000 --reload
verify:
source venv/bin/activate && python scripts/verify.py
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null; \
rm -rf tmp/*.pdf tmp/*.png tmp/*.docx 2>/dev/null; true