modified text sr to lang, test=doc

pull/1508/head
lym0302 3 years ago
parent 96abb33b5b
commit 395c923dee

@ -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():
) )
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:

Loading…
Cancel
Save