提交 35357e77 编写于 作者: L lym0302

update, test=doc

上级 e5aa24fa
...@@ -31,7 +31,9 @@ model_name_format = { ...@@ -31,7 +31,9 @@ model_name_format = {
} }
@cli_register(name='paddlespeech.stats', description='Text infer command.') @cli_register(
name='paddlespeech.stats',
description='Get speech tasks support models list.')
class StatsExecutor(): class StatsExecutor():
def __init__(self): def __init__(self):
super(StatsExecutor, self).__init__() super(StatsExecutor, self).__init__()
...@@ -73,7 +75,14 @@ class StatsExecutor(): ...@@ -73,7 +75,14 @@ class StatsExecutor():
"Here is the list of ASR pretrained models released by PaddleSpeech that can be used by command line and python API" "Here is the list of ASR pretrained models released by PaddleSpeech that can be used by command line and python API"
) )
self.show_support_models(pretrained_models) self.show_support_models(pretrained_models)
# TODO show pretrained static model
# show ASR static pretrained model
from paddlespeech.server.engine.asr.paddleinference.asr_engine import pretrained_models
logger.info(
"Here is the list of ASR static pretrained models released by PaddleSpeech that can be used by command line and python API"
)
self.show_support_models(pretrained_models)
return True return True
except BaseException: except BaseException:
logger.error("Failed to get the list of ASR pretrained models.") logger.error("Failed to get the list of ASR pretrained models.")
...@@ -123,7 +132,14 @@ class StatsExecutor(): ...@@ -123,7 +132,14 @@ class StatsExecutor():
"Here is the list of TTS pretrained models released by PaddleSpeech that can be used by command line and python API" "Here is the list of TTS pretrained models released by PaddleSpeech that can be used by command line and python API"
) )
self.show_support_models(pretrained_models) self.show_support_models(pretrained_models)
# TODO show pretrained static model
# show TTS static pretrained model
from paddlespeech.server.engine.tts.paddleinference.tts_engine import pretrained_models
logger.info(
"Here is the list of TTS static pretrained models released by PaddleSpeech that can be used by command line and python API"
)
self.show_support_models(pretrained_models)
return True return True
except BaseException: except BaseException:
logger.error("Failed to get the list of TTS pretrained models.") logger.error("Failed to get the list of TTS pretrained models.")
......
...@@ -62,13 +62,13 @@ base = [ ...@@ -62,13 +62,13 @@ base = [
"visualdl", "visualdl",
"webrtcvad", "webrtcvad",
"yacs~=0.1.8", "yacs~=0.1.8",
"prettytable",
] ]
server = [ server = [
"fastapi", "fastapi",
"uvicorn", "uvicorn",
"pattern_singleton", "pattern_singleton",
"prettytable",
] ]
requirements = { requirements = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册