diff --git a/paddlespeech/cli/asr/infer.py b/paddlespeech/cli/asr/infer.py index 1304c511..7a7a6a5d 100644 --- a/paddlespeech/cli/asr/infer.py +++ b/paddlespeech/cli/asr/infer.py @@ -484,7 +484,7 @@ class ASRExecutor(BaseExecutor): force_yes = parser_args.yes device = parser_args.device - if not args.verbose: + if not parser_args.verbose: self.disable_task_loggers() task_source = self.get_task_source(parser_args.input) @@ -501,7 +501,7 @@ class ASRExecutor(BaseExecutor): task_results[id_] = f'{e.__class__.__name__}: {e}' self.process_task_results(parser_args.input, task_results, - args.job_dump_result) + parser_args.job_dump_result) if has_exceptions: return False diff --git a/paddlespeech/cli/cls/infer.py b/paddlespeech/cli/cls/infer.py index d74645cb..ab5eee6e 100644 --- a/paddlespeech/cli/cls/infer.py +++ b/paddlespeech/cli/cls/infer.py @@ -248,7 +248,7 @@ class CLSExecutor(BaseExecutor): topk = parser_args.topk device = parser_args.device - if not args.verbose: + if not parser_args.verbose: self.disable_task_loggers() task_source = self.get_task_source(parser_args.input) @@ -265,7 +265,7 @@ class CLSExecutor(BaseExecutor): task_results[id_] = f'{e.__class__.__name__}: {e}' self.process_task_results(parser_args.input, task_results, - args.job_dump_result) + parser_args.job_dump_result) if has_exceptions: return False diff --git a/paddlespeech/cli/st/infer.py b/paddlespeech/cli/st/infer.py index 1e4dedd0..e64fc57d 100644 --- a/paddlespeech/cli/st/infer.py +++ b/paddlespeech/cli/st/infer.py @@ -332,7 +332,7 @@ class STExecutor(BaseExecutor): ckpt_path = parser_args.ckpt_path device = parser_args.device - if not args.verbose: + if not parser_args.verbose: self.disable_task_loggers() task_source = self.get_task_source(parser_args.input) @@ -349,7 +349,7 @@ class STExecutor(BaseExecutor): task_results[id_] = f'{e.__class__.__name__}: {e}' self.process_task_results(parser_args.input, task_results, - args.job_dump_result) + parser_args.job_dump_result) if has_exceptions: return False diff --git a/paddlespeech/cli/text/infer.py b/paddlespeech/cli/text/infer.py index f57ce6b7..dcf306c6 100644 --- a/paddlespeech/cli/text/infer.py +++ b/paddlespeech/cli/text/infer.py @@ -275,7 +275,7 @@ class TextExecutor(BaseExecutor): punc_vocab = parser_args.punc_vocab device = parser_args.device - if not args.verbose: + if not parser_args.verbose: self.disable_task_loggers() task_source = self.get_task_source(parser_args.input) @@ -292,7 +292,7 @@ class TextExecutor(BaseExecutor): task_results[id_] = f'{e.__class__.__name__}: {e}' self.process_task_results(parser_args.input, task_results, - args.job_dump_result) + parser_args.job_dump_result) if has_exceptions: return False