Просмотр исходного кода

Merge pull request #608 from zhaomingwork/for_ws_python_client

for wss client no offline mode
hnluo 2 лет назад
Родитель
Сommit
81b76eb3cd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      funasr/runtime/python/websocket/wss_client_asr.py

+ 1 - 1
funasr/runtime/python/websocket/wss_client_asr.py

@@ -194,7 +194,7 @@ async def message(id):
                 text_print = text_print[-args.words_max_print:]
                 os.system('clear')
                 print("\rpid"+str(id)+": "+text_print)
-            elif meg["mode"] == "online":
+            elif meg["mode"] == "offline":
                 text_print += "{}".format(text)
                 text_print = text_print[-args.words_max_print:]
                 os.system('clear')