Skip to content

Commit 5448fc3

Browse files
committed
More formatting locally (to long lines)
1 parent f98dfdb commit 5448fc3

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

redisai/client.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ def modelstore(
168168
minbatch : int
169169
Minimum number of samples required in a batch for model execution
170170
minbatchtimeout : int
171-
The max number of miliseconds for which the engine will not trigger an execution if the number of samples
172-
is lower than minbatch (after minbatchtimeout is passed, the execution will start even if minbatch jas not reached)
171+
The max number of miliseconds for which the engine will not trigger an execution
172+
if the number of samples is lower than minbatch (after minbatchtimeout is passed,
173+
the execution will start even if minbatch jas not reached)
173174
tag : AnyStr
174175
Any string that will be saved in RedisAI as tag for the model
175176
inputs : Union[AnyStr, List[AnyStr]]
@@ -225,7 +226,8 @@ def modelset(
225226
outputs: Union[AnyStr, List[AnyStr]] = None,
226227
) -> str:
227228
"""
228-
Similar to modelstore (this is the deprecated version that will not be supported in future versions).
229+
Similar to modelstore (this is the deprecated version that will not be
230+
supported in future versions).
229231
230232
Example
231233
-------
@@ -317,11 +319,12 @@ def modelexecute(
317319
Tensor(s) which is already saved in the RedisAI using a tensorset call. These
318320
tensors will be used as the inputs for the modelexecute
319321
outputs : Union[AnyStr, List[AnyStr]]
320-
keys on which the outputs to be saved. If those keys exist already, modelexecute
321-
will overwrite them with new values
322+
keys on which the outputs to be saved. If those keys exist already,
323+
modelexecute will overwrite them with new values
322324
timeout : int
323325
The max number on milisecinds that may pass before the request is prossced
324-
(meaning that the result will not be computed after that time and TIMEDOUT is returned in that case
326+
(meaning that the result will not be computed after that time and TIMEDOUT
327+
is returned in that case
325328
326329
Returns
327330
-------
@@ -352,7 +355,8 @@ def modelrun(
352355
outputs: Union[AnyStr, List[AnyStr]],
353356
) -> str:
354357
"""
355-
Similar to modelexecute (this is the deprecated version that will not be supported in future versions).
358+
Similar to modelexecute (this is the deprecated version that will not be
359+
supported in future versions).
356360
357361
Example
358362
-------

redisai/command_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def modelstore(
4545
args += ["MINBATCHTIMEOUT", minbatchtimeout]
4646

4747
if backend.upper() == "TF":
48-
if not (all((inputs, outputs))):
48+
if not all((inputs, outputs)):
4949
raise ValueError(
5050
"Require keyword arguments inputs and outputs for TF models"
5151
)

0 commit comments

Comments
 (0)