未验证 提交 2517df92 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #1508 from lym0302/paddlespeech_stats

[CLI] modified text sr to lang
...@@ -26,7 +26,7 @@ model_name_format = { ...@@ -26,7 +26,7 @@ model_name_format = {
'asr': 'Model-Language-Sample Rate', 'asr': 'Model-Language-Sample Rate',
'cls': 'Model-Sample Rate', 'cls': 'Model-Sample Rate',
'st': 'Model-Source language-Target language', 'st': 'Model-Source language-Target language',
'text': 'Model-Task-Sample Rate', 'text': 'Model-Task-Language',
'tts': 'Model-Language' 'tts': 'Model-Language'
} }
...@@ -180,8 +180,7 @@ class StatsExecutor(): ...@@ -180,8 +180,7 @@ class StatsExecutor():
) )
self.show_support_models(pretrained_models) self.show_support_models(pretrained_models)
except BaseException: except BaseException:
print( print("Failed to get the list of TEXT pretrained models.")
"Failed to get the list of TEXT pretrained models.")
elif self.task == 'tts': elif self.task == 'tts':
try: try:
...@@ -191,4 +190,4 @@ class StatsExecutor(): ...@@ -191,4 +190,4 @@ class StatsExecutor():
) )
self.show_support_models(pretrained_models) self.show_support_models(pretrained_models)
except BaseException: except BaseException:
print("Failed to get the list of TTS pretrained models.") print("Failed to get the list of TTS pretrained models.")
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册