From 284784bbdf358a9e179673b5e3c1b0d796dbf7ee Mon Sep 17 00:00:00 2001 From: Bikatr7 Date: Mon, 27 May 2024 10:56:48 -0600 Subject: [PATCH] deepl and google translation batches are cleared now on webgui reset --- modules/common/translator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/common/translator.py b/modules/common/translator.py index 9ac5857..46aecdf 100644 --- a/modules/common/translator.py +++ b/modules/common/translator.py @@ -357,6 +357,8 @@ def reset_static_variables() -> None: Translator.error_text = [] Translator.openai_translation_batches = [] Translator.gemini_translation_batches = [] + Translator.deepl_translation_batches = [] + Translator.google_translate_translation_batches = [] Translator.num_occurred_malformed_batches = 0 Translator.translation_print_result = "" Translator.TRANSLATION_METHOD = "deepl"