This commit is contained in:
AhBumm
2025-01-24 16:38:18 +08:00
parent 127425a341
commit ca959411c2
+2 -2
View File
@@ -1134,8 +1134,8 @@ class BillBum_Modified_RegText_Node:
CATEGORY = "text_processing"
def de_warp_text(self, input_text):
text = re.sub(r"<think>.*?<\/think>", "", text)
text = input_text.replace('\n', '').replace('.', ',')
text = re.sub(r"<think>.*?<\/think>", "", input_text)
text = text.replace('\n', '').replace('.', ',')
text = re.sub(r"[^a-zA-Z0-9\s,'-]", "", text)
return (text,)