File size: 847 Bytes
512a4ed
f651031
512a4ed
 
 
 
 
 
 
f651031
512a4ed
f651031
512a4ed
 
 
 
 
 
 
 
 
 
 
 
 
 
5373b2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
title: YOLOv8s Fullstack Backend
emoji: 🚀
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
---

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