Merge pull request #1508 from lym0302/paddlespeech_stats

[CLI] modified text sr to lang
pull/1514/head
Hui Zhang 3 years ago committed by GitHub
commit 2517df92a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,7 +26,7 @@ model_name_format = {
'asr': 'Model-Language-Sample Rate',
'cls': 'Model-Sample Rate',
'st': 'Model-Source language-Target language',
'text': 'Model-Task-Sample Rate',
'text': 'Model-Task-Language',
'tts': 'Model-Language'
}
@ -180,8 +180,7 @@ class StatsExecutor():
)
self.show_support_models(pretrained_models)
except BaseException:
print(
"Failed to get the list of TEXT pretrained models.")
print("Failed to get the list of TEXT pretrained models.")
elif self.task == 'tts':
try:
@ -191,4 +190,4 @@ class StatsExecutor():
)
self.show_support_models(pretrained_models)
except BaseException:
print("Failed to get the list of TTS pretrained models.")
print("Failed to get the list of TTS pretrained models.")

Loading…
Cancel
Save