From ae521d37005736da0c7e6727bbb0140bdf6fbd1d Mon Sep 17 00:00:00 2001 From: TianYuan Date: Thu, 17 Feb 2022 18:37:38 +0800 Subject: [PATCH] Update infer.py --- paddlespeech/cli/tts/infer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/cli/tts/infer.py b/paddlespeech/cli/tts/infer.py index f1f4daaac..dfd6a42fe 100644 --- a/paddlespeech/cli/tts/infer.py +++ b/paddlespeech/cli/tts/infer.py @@ -431,7 +431,7 @@ class TTSExecutor(BaseExecutor): """ Init model and other resources from a specific path. """ - if hasattr(self, 'am') and hasattr(self, 'voc'): + if hasattr(self, 'am_inference') and hasattr(self, 'voc_inference'): logger.info('Models had been initialized.') return # am