Skip to content

Commit

Permalink
fixed async syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee committed Oct 17, 2023
1 parent 6e1e235 commit 1eb2f18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mindee/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def call_parse(self) -> None:
response: Union[PredictResponse, AsyncPredictResponse]
if self.document_info.is_sync:
if self.document_info.is_async:
if self.parsed_args.async_parse is not None:
if self.parsed_args.async_parse is not None and self.parsed_args.async_parse:
response = self._parse_async()
else:
response = self._parse_sync()
Expand Down Expand Up @@ -308,6 +308,7 @@ def _set_args(self) -> Namespace:
"--asynchronous",
dest="async_parse",
help="Parse asynchronously",
action="store_true",
required=False,
default=False,
)
Expand Down

0 comments on commit 1eb2f18

Please sign in to comment.