Got argument order mixed up

This commit is contained in:
niten 2023-03-16 14:50:59 -07:00
parent ed962240b3
commit 365fa386c6
1 changed files with 2 additions and 2 deletions

View File

@ -111,8 +111,8 @@ def analyze_image(request: Request, image: UploadFile):
chunk = image.file.read(buffer_size)
result = detector.detect_objects(
infile,
str(outgoing_dir / (file_hash.hexdigest() + ".png")),
detection_timeout)
detection_timeout,
str(outgoing_dir / (file_hash.hexdigest() + ".png")))
remove(infile)
return result_to_dict(result, base_url)