shkumar156/Backend-Object-Detection
1
Fullstack YOLOv8s Backend for Hugging Face Spaces
This backend combines Node.js (Express) and Python (YOLOv8s FastAPI) for object detection, ready to deploy on Hugging Face Spaces using Docker.
Files
server.js: Node.js backenddetect.py,yolov5s.pt: Python detection logic and model weightsrequirements.txt: Python dependenciespackage.json: Node.js dependenciesDockerfile: Multi-runtime deployment
Deployment
- Upload all files to your Hugging Face Space (Docker > Blank template).
- The backend will be available at
https://your-space-name.hf.space.
Notes
- The backend listens on port 7860 (required by Hugging Face Spaces).
- Make sure your frontend points to this backend for API calls.
