From 1386d3f4922053e0fa56443d835b91563d7a03e6 Mon Sep 17 00:00:00 2001 From: JC <39209141+jhc13@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:08:45 +0900 Subject: [PATCH] Handle empty strings in bad words and forced words --- taggui/auto_captioning/captioning_thread.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/taggui/auto_captioning/captioning_thread.py b/taggui/auto_captioning/captioning_thread.py index abe4ec3..d050248 100644 --- a/taggui/auto_captioning/captioning_thread.py +++ b/taggui/auto_captioning/captioning_thread.py @@ -70,7 +70,10 @@ def get_bad_words_ids(bad_words_string: str, if not bad_words_string.strip(): return None words = re.split(r'(?