shkumar156 commited on
Commit
0c575ce
·
verified ·
1 Parent(s): 5afd455

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
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 = 'yolov8s.pt';
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 = '/tmp/yolov8s.pt';
198
 
199
  console.log('Calling yolo_detect.py with weights:', weightsPath, 'and image:', imagePath);
200