From da43d13b5e9471d3481b7af2efc53b3d9b9fcba5 Mon Sep 17 00:00:00 2001 From: lllyasviel Date: Thu, 25 Jan 2024 22:54:51 -0800 Subject: [PATCH] Update gradio_compile.py --- modules_forge/gradio_compile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules_forge/gradio_compile.py b/modules_forge/gradio_compile.py index c6f81cf3..4fbf2118 100644 --- a/modules_forge/gradio_compile.py +++ b/modules_forge/gradio_compile.py @@ -3,7 +3,9 @@ def gradio_compile(items, prefix): for k, v in items["required"].items(): t = v[0] d = v[1] if len(v) > 1 else None - name = (prefix + '_' + k).replace(' ', '_').lower() + if prefix != '': + prefix = prefix + '_' + name = (prefix + k).replace(' ', '_').lower() title = name.replace('_', ' ').title() if t == 'INT':