Sudipta Nayak commited on
Commit
5f07b35
·
1 Parent(s): ff705c3

code changes

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -47,7 +47,7 @@ async def detect_objects(request: Request, file: UploadFile):
47
  print('Detect start')
48
 
49
  # Run YOLOv7 detection and save output
50
- subprocess.run(["python", "app/detect.py", "--conf", "0.5", "--img-size", "640", "--weights", "app/model/best.pt", "--no-trace",
51
  "--source", str(input_file_path), "--save-txt", "--save-conf", "--exist-ok", "--project", str(output_file_path)])
52
 
53
  print('Detect end')
 
47
  print('Detect start')
48
 
49
  # Run YOLOv7 detection and save output
50
+ await subprocess.run(["python", "app/detect.py", "--conf", "0.5", "--img-size", "640", "--weights", "app/model/best.pt", "--no-trace",
51
  "--source", str(input_file_path), "--save-txt", "--save-conf", "--exist-ok", "--project", str(output_file_path)])
52
 
53
  print('Detect end')