From a58e077c350dde06769c8c370757a54614a7f3ab Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 23 三月 2023 20:46:17 +0800
Subject: [PATCH] websocket

---
 funasr/runtime/python/websocket/ASR_server.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/python/websocket/ASR_server.py b/funasr/runtime/python/websocket/ASR_server.py
index ebc6e1f..1fd02b5 100644
--- a/funasr/runtime/python/websocket/ASR_server.py
+++ b/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,

--
Gitblit v1.9.1