From 2b5a03efa131a911602bad454cee0adada37ade6 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Fri, 13 Sep 2024 02:26:56 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model:=20=E5=A4=9A?= =?UTF-8?q?=E8=A8=80=E8=AA=9E=E5=AF=BE=E5=BF=9C=E3=81=AB=E4=BC=B4=E3=81=84?= =?UTF-8?q?exclude=5Fword=E3=82=92translation[list]=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/webui_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index a2227eda..37679c2d 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -349,7 +349,8 @@ class ChatMessage: translation, success = model.getInputTranslate(replacement_message) message = removeExclamations(message) - translation = restoreText(translation, replacement_dict) + for i in range(len(translation)): + translation[i] = restoreText(translation[i], replacement_dict) else: translation, success = model.getInputTranslate(message)