Support ai-edge-litert as TFLite runtime

tflite-runtime has no wheels for Python 3.12+. Google replaced it with
ai-edge-litert (same API). detector.py now tries ai-edge-litert first,
falls back to tflite-runtime for older Python versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alex
2026-02-08 17:24:20 -06:00
parent 5466793e69
commit 02cb31abf8
3 changed files with 15 additions and 7 deletions

View File

@@ -14,4 +14,5 @@ python-dotenv>=1.0.0
httpx>=0.24.0
# Object detection (installed separately by setup.sh)
# tflite-runtime>=2.14.0
# pip install ai-edge-litert (Python 3.12+)
# pip install tflite-runtime (Python 3.9-3.11)