index.html — UI and page structurestyle.css — app stylingscript.js — model loading, image preprocessing, inference, drawing, and reading extractionlabels.json — model class labels referencebest.onnx — your YOLOv8 ONNX model file (must be added separately)best.onnx model in the same folder as index.html.No Python server is required for the repository structure below.
[x, y, w, h, obj, class01, class02, ...].best.onnx is missing, the model load will fail.best.onnx to the Space root.MODEL_PATH in script.js.