Update gradio_compile.py

This commit is contained in:
lllyasviel
2024-01-25 22:25:15 -08:00
parent 04f50e1ba4
commit 6edeaa6cfd

View File

@@ -4,7 +4,7 @@ def gradio_compile(items, prefix):
if len(v) == 2:
t, d = v
if t == 'INT':
name = prefix + '_' + k
name = (prefix + '_' + k).replace(' ', '_').lower()
default = int(d['default'])
min = int(d['min'])
max = int(d['max'])