Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,19 +1,27 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
- Make sure your frontend points to this backend for API calls.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: YOLOv5 Fullstack Backend
|
| 3 |
+
emoji: 🚀
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Fullstack YOLOv5 Backend for Hugging Face Spaces
|
| 11 |
+
|
| 12 |
+
This backend combines Node.js (Express) and Python (YOLOv5 FastAPI) for object detection, ready to deploy on Hugging Face Spaces using Docker.
|
| 13 |
+
|
| 14 |
+
## Files
|
| 15 |
+
- `server.js`: Node.js backend
|
| 16 |
+
- `detect.py`, `yolov5s.pt`: Python detection logic and model weights
|
| 17 |
+
- `requirements.txt`: Python dependencies
|
| 18 |
+
- `package.json`: Node.js dependencies
|
| 19 |
+
- `Dockerfile`: Multi-runtime deployment
|
| 20 |
+
|
| 21 |
+
## Deployment
|
| 22 |
+
1. Upload all files to your Hugging Face Space (Docker > Blank template).
|
| 23 |
+
2. The backend will be available at `https://your-space-name.hf.space`.
|
| 24 |
+
|
| 25 |
+
## Notes
|
| 26 |
+
- The backend listens on port 7860 (required by Hugging Face Spaces).
|
| 27 |
- Make sure your frontend points to this backend for API calls.
|