游雁
2023-03-23 a58e077c350dde06769c8c370757a54614a7f3ab
websocket
1个文件已修改
4 ■■■■ 已修改文件
funasr/runtime/python/websocket/ASR_server.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/python/websocket/ASR_server.py
@@ -36,7 +36,7 @@
parser.add_argument("--punc_model",
                    type=str,
                    default="damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727",
                    default="",
                    help="model from modelscope")
parser.add_argument("--ngpu",
                    type=int,
@@ -70,7 +70,7 @@
    param_dict=param_dict_asr,
    ngpu=args.ngpu,
)
if args.punc_model is not None:
if args.punc_model != "":
    param_dict_punc = {'cache': list()}
    inference_pipeline_punc = pipeline(
        task=Tasks.punctuation,