diff --git a/billbum_modified.py b/billbum_modified.py index 43a43dc..343f58d 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"<[^>]*>", "", text) text = re.sub(r"[^a-zA-Z0-9\s,'-]", "", text) return (text,) diff --git a/pyproject.toml b/pyproject.toml index 400a730..379eb97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_billbum_nodes" description = "API call node for Third-party platforms both official and local. Support VLMs LLMs Dalle3 Flux-Pro SD3 etc. And some little tools: img to b64 url, b64 url to img, b64 url to b64 data, reg text to word and ',' only, etc." -version = "1.0.3" +version = "1.0.4" license = {file = "LICENSE"} dependencies = ["tenacity", "openai", "pillow", "requests", "together", "torch", "numpy", "tiktoken"]