This folder contains the Python API used by the app.
POST /scoresPOST /classify
Both accept raw image bytes (image/jpeg or image/png).
From repo root:
make build-ai-api
make ai-apiAPI runs at:
http://localhost:8080Use any local image file (example: public/sample.jpg).
curl -X POST -H "Content-Type: image/jpeg" --data-binary @public/sample.jpg http://localhost:8080/scorescurl -X POST -H "Content-Type: image/jpeg" --data-binary @public/sample.jpg http://localhost:8080/classifycd apps/api
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn main:main_py_app --host 0.0.0.0 --port 8080