--- title: PCB Defect API emoji: 🔌 colorFrom: green colorTo: gray sdk: gradio sdk_version: 5.35.0 python_version: "3.12" app_file: app.py pinned: false short_description: FastAPI + ONNX Runtime INT8 PCB defect detection API --- # PCB defect detection API FastAPI + ONNX Runtime inference service for a YOLO11n PCB defect detector (static INT8, detection head FP32), CPU inference on the free tier. Source, tests, CI and benchmarks: https://gitlab.com/michael.sucahyo/pcb-defect-optimization ```bash curl -F "file=@board.jpg;type=image/jpeg" https://michaelandrew35-pcb-defect-api.hf.space/v1/predict ``` Endpoints: `POST /v1/predict`, `GET /v1/health`, `GET /v1/metrics`, `GET /v1/docs`. Free Spaces sleep when idle; the first request after a pause waits for a cold start.