Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouya Rostam committed Jan 31, 2024
1 parent 1d97305 commit e598e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _engine_params_parser(in_args: argparse.Namespace) -> Dict[str, Any]:
if in_args.picovoice_access_key is None:
raise ValueError(f"Engine {in_args.engine} requires --picovoice-access-key")
kwargs_engine.update(access_key=in_args.picovoice_access_key)
elif engine in (Engines.PYANNOTE, Engines.WESPEAKER):
elif engine in {Engines.PYANNOTE, Engines.WESPEAKER}:
if in_args.auth_token is None:
raise ValueError(f"Engine {in_args.engine} requires --auth-token")
kwargs_engine.update(auth_token=in_args.auth_token)
Expand Down

0 comments on commit e598e8a

Please sign in to comment.