diff --git a/examples/interactive_asr/utils.py b/examples/interactive_asr/utils.py index 37f5ae5303..3aae6c6864 100644 --- a/examples/interactive_asr/utils.py +++ b/examples/interactive_asr/utils.py @@ -124,7 +124,7 @@ def setup_asr(args, logger): check_args(args) import_user_module(args) - if args.max_tokens is None and args.max_sentences is None: + if args.max_tokens is None and args.batch_size is None: args.max_tokens = 30000 logger.info(args)