Skip to content

Commit ae521d3

Browse files
authored
Update infer.py
1 parent 0202b8c commit ae521d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlespeech/cli/tts/infer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def _init_from_path(
431431
"""
432432
Init model and other resources from a specific path.
433433
"""
434-
if hasattr(self, 'am') and hasattr(self, 'voc'):
434+
if hasattr(self, 'am_inference') and hasattr(self, 'voc_inference'):
435435
logger.info('Models had been initialized.')
436436
return
437437
# am

0 commit comments

Comments
 (0)