From 365fa386c6175f000e9364ee0f268c0e69313193 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 16 Mar 2023 14:50:59 -0700 Subject: [PATCH] Got argument order mixed up --- src/objectifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objectifier.py b/src/objectifier.py index d364259..2cec8c6 100644 --- a/src/objectifier.py +++ b/src/objectifier.py @@ -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)