File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments