CoolFace
Apppublic

shkumar156/Backend-Object-Detection

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
App README

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 backend
  • detect.py, yolov5s.pt: Python detection logic and model weights
  • requirements.txt: Python dependencies
  • package.json: Node.js dependencies
  • Dockerfile: Multi-runtime deployment

Deployment

  1. 1.Upload all files to your Hugging Face Space (Docker > Blank template).
  2. 2.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.