From ca959411c20396ebb6f6ca38779c02b99621f67f Mon Sep 17 00:00:00 2001 From: AhBumm Date: Fri, 24 Jan 2025 16:38:18 +0800 Subject: [PATCH] fix bug --- billbum_modified.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/billbum_modified.py b/billbum_modified.py index 343f58d..07710d9 100644 --- a/billbum_modified.py +++ b/billbum_modified.py @@ -1134,8 +1134,8 @@ class BillBum_Modified_RegText_Node: CATEGORY = "text_processing" def de_warp_text(self, input_text): - text = re.sub(r".*?<\/think>", "", text) - text = input_text.replace('\n', '').replace('.', ',') + text = re.sub(r".*?<\/think>", "", input_text) + text = text.replace('\n', '').replace('.', ',') text = re.sub(r"[^a-zA-Z0-9\s,'-]", "", text) return (text,)