Skip to content

Commit 886773b

Browse files
committed
change name of sync call
1 parent 306831d commit 886773b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

las/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ def create_prediction(
15311531
training_id: Optional[str] = None,
15321532
preprocess_config: Optional[dict] = None,
15331533
postprocess_config: Optional[dict] = None,
1534-
sync: Optional[bool] = None,
1534+
run_async: Optional[bool] = None,
15351535
) -> Dict:
15361536
"""Create a prediction on a document using specified model, calls the POST /predictions endpoint.
15371537
@@ -1586,7 +1586,7 @@ def create_prediction(
15861586
'trainingId': training_id,
15871587
'preprocessConfig': preprocess_config,
15881588
'postprocessConfig': postprocess_config,
1589-
'async': None if sync is None else sync == False,
1589+
'async': run_async,
15901590
}
15911591
return self._make_request(requests.post, '/predictions', body=dictstrip(body))
15921592

0 commit comments

Comments
 (0)