From 02dd17aa4f822fc843c550ae9b5e9e61094e379a Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sat, 16 Dec 2023 15:21:49 -0600 Subject: [PATCH] fix(api): allow spaces in wildcard filenames --- 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 ae55669c..c54f853b 100644 --- a/api/onnx_web/diffusers/utils.py +++ b/api/onnx_web/diffusers/utils.py @@ -24,7 +24,7 @@ REGION_TOKEN = compile( r"\]+)\>" ) RESEED_TOKEN = compile(r"\") -WILDCARD_TOKEN = compile(r"__([-/\\\w\.]+)__") +WILDCARD_TOKEN = compile(r"__([-/\\\w\. ]+)__") INTERVAL_RANGE = compile(r"(\w+)-{(\d+),(\d+)(?:,(\d+))?}") ALTERNATIVE_RANGE = compile(r"\(([^\)]+)\)")