Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -194,7 +194,7 @@ app.post('/upload', upload.single('image'), async (req, res) => {
|
|
| 194 |
async function runYOLOv5Detection(imagePath) {
|
| 195 |
return new Promise((resolve) => {
|
| 196 |
const yolov5Path = path.join(__dirname, 'yolo_detect.py');
|
| 197 |
-
const weightsPath =
|
| 198 |
|
| 199 |
console.log('Calling yolo_detect.py with weights:', weightsPath, 'and image:', imagePath);
|
| 200 |
|
|
|
|
| 194 |
async function runYOLOv5Detection(imagePath) {
|
| 195 |
return new Promise((resolve) => {
|
| 196 |
const yolov5Path = path.join(__dirname, 'yolo_detect.py');
|
| 197 |
+
const weightsPath = 'yolov8s.pt';
|
| 198 |
|
| 199 |
console.log('Calling yolo_detect.py with weights:', weightsPath, 'and image:', imagePath);
|
| 200 |
|