Update billbum_modified.py

This commit is contained in:
AhBumm
2025-02-05 10:00:04 +08:00
committed by GitHub
parent 794c6b984f
commit 270153626a
+2 -2
View File
@@ -1134,7 +1134,7 @@ class BillBum_Modified_RegText_Node:
CATEGORY = "text_processing"
def de_warp_text(self, input_text):
text = re.sub(r"<think>.*?</think>", "", input_text, flags=re.DOTALL)
text = re.sub(r".*?</think>", "", input_text, flags=re.DOTALL)
text = text.replace('\n', '').replace('.', ',')
text = re.sub(r"[^a-zA-Z0-9\s,'-]", "", text)
@@ -1294,4 +1294,4 @@ NODE_CLASS_MAPPINGS = {
}
NODE_DISPLAY_NAME_MAPPINGS = {
}
}