Got argument order mixed up
This commit is contained in:
parent
ed962240b3
commit
365fa386c6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue