From 0ccf05b850299a9f76af1fb416e7454374ba15f3 Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: 星期六, 06 五月 2023 16:48:41 +0800
Subject: [PATCH] fix bug for python websocket
---
funasr/runtime/python/websocket/ws_client.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/runtime/python/websocket/ws_client.py b/funasr/runtime/python/websocket/ws_client.py
index 8bbf103..a3b49a9 100644
--- a/funasr/runtime/python/websocket/ws_client.py
+++ b/funasr/runtime/python/websocket/ws_client.py
@@ -143,7 +143,7 @@
meg = json.loads(meg)
# print(meg, end = '')
# print("\r")
- text = meg["text"][0]
+ text = meg["text"]
text_print += text
text_print = text_print[-55:]
os.system('clear')
--
Gitblit v1.9.1