From 331d57253ae25dd42c8e14930dee30cd8d2affa6 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 24 四月 2023 11:41:18 +0800
Subject: [PATCH] Merge pull request #408 from alibaba-damo-academy/hnluo-patch-1

---
 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 9344f38..827df7b 100644
--- a/funasr/runtime/python/websocket/ASR_server.py
+++ b/funasr/runtime/python/websocket/ASR_server.py
@@ -144,7 +144,7 @@
  
 
 def asr(websocket):  # ASR鎺ㄧ悊
-        global inference_pipeline2
+        global inference_pipeline_asr, inference_pipeline_punc
         # global param_dict_punc
         global websocket_users
         while websocket in  websocket_users:
@@ -162,7 +162,7 @@
             time.sleep(0.1)
 
 def vad(data, websocket):  # VAD鎺ㄧ悊
-    global vad_pipline, param_dict_vad
+    global inference_pipeline_vad
     #print(type(data))
     # print(param_dict_vad)
     segments_result = inference_pipeline_vad(audio_in=data, param_dict=websocket.param_dict_vad)

--
Gitblit v1.9.1