From c3f4c520042947f16c6e2efe7eea8416f51004be Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 5 Nov 2023 15:56:03 -0600 Subject: [PATCH] fix region prompt regex --- api/onnx_web/diffusers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/onnx_web/diffusers/utils.py b/api/onnx_web/diffusers/utils.py index d06a28cd..a29c8876 100644 --- a/api/onnx_web/diffusers/utils.py +++ b/api/onnx_web/diffusers/utils.py @@ -21,7 +21,7 @@ CLIP_TOKEN = compile(r"\") INVERSION_TOKEN = compile(r"\]+):(-?[\.|\d]+)\>") LORA_TOKEN = compile(r"\]+):(-?[\.|\d]+)\>") WILDCARD_TOKEN = compile(r"__([-/\\\w]+)__") -REGION_TOKEN = compile(r"\])\>") +REGION_TOKEN = compile(r"\]+)\>") INTERVAL_RANGE = compile(r"(\w+)-{(\d+),(\d+)(?:,(\d+))?}") ALTERNATIVE_RANGE = compile(r"\(([^\)]+)\)")