pcb-defect-api / README.md
michaelandrew35's picture
Deploy b48da124 from GitLab CI
d0f5702 verified
|
Raw History Blame Contribute Delete
780 Bytes

A newer version of the Gradio SDK is available: 6.31.0

Upgrade
metadata
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

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.