Sfoglia il codice sorgente

for wss client no offline mode

zhaomingwork 2 anni fa
parent
commit
800a3bc9d1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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')