Skip to content

Commit 8c59af2

Browse files
committed
fixed logical error in model inference
1 parent 1a78c3e commit 8c59af2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cord/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def model_inference(self,
183183
FileTypeNotSupportedError: If the file type is not supported for inference (has to be an image or video)
184184
MustSetDetectionRangeError: If a detection range is not set for video inference
185185
"""
186-
if file_paths and base64_strings is None or len(file_paths) > 0 and len(base64_strings) > 0:
186+
if (file_paths is None and base64_strings is None) or (file_paths is not None and len(file_paths) > 0 and base64_strings is not None and len(base64_strings) > 0):
187187
raise Exception("To run model inference, you must pass either a list of files or base64 strings")
188188

189189
if detection_frame_range is None:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="cord-client-python",
8-
version="0.0.5",
8+
version="0.0.6",
99
author="Cord Technologies Limited",
1010
author_email="[email protected]",
1111
description="Cord Python API Client",

0 commit comments

Comments
 (0)