fix to allow empty {} values
This commit is contained in:
parent
b99a4f769f
commit
f6a97868e5
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import re
|
||||
import gradio as gr
|
||||
|
||||
re_param_code = r"\s*([\w ]+):\s*((?:{[^}]+})|(?:[^,]+))(?:,|$)"
|
||||
re_param_code = r"\s*([\w ]+):\s*((?:{[^}]*})|(?:[^,]+))(?:,|$)"
|
||||
re_param = re.compile(re_param_code)
|
||||
re_params = re.compile(r"^(?:" + re_param_code + "){3,}$")
|
||||
re_imagesize = re.compile(r"^(\d+)x(\d+)$")
|
||||
|
|
Loading…
Reference in a new issue