mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 11:11:15 +00:00
Update gradio_compile.py
This commit is contained in:
@@ -4,8 +4,9 @@ def gradio_compile(items, prefix):
|
|||||||
t = v[0]
|
t = v[0]
|
||||||
d = v[1] if len(v) > 1 else None
|
d = v[1] if len(v) > 1 else None
|
||||||
if prefix != '':
|
if prefix != '':
|
||||||
prefix = prefix + '_'
|
name = (prefix + k).replace(' ', '_').lower()
|
||||||
name = (prefix + k).replace(' ', '_').lower()
|
else:
|
||||||
|
name = k.replace(' ', '_').lower()
|
||||||
title = name.replace('_', ' ').title()
|
title = name.replace('_', ' ').title()
|
||||||
|
|
||||||
if t == 'INT':
|
if t == 'INT':
|
||||||
|
|||||||
Reference in New Issue
Block a user