remove custom gr components

This commit is contained in:
Vladimir Mandic
2024-01-20 07:43:16 -05:00
parent f6ac307a4e
commit 952edd29b2
13 changed files with 105 additions and 110 deletions
+2 -3
View File
@@ -5,7 +5,6 @@ import gradio.routes
import gradio.utils
from modules.call_queue import wrap_gradio_call
from modules import timer, gr_hijack, shared, theme, sd_models, script_callbacks, modelloader, ui_common, ui_loadsave, ui_symbols, ui_javascript, generation_parameters_copypaste
from modules.ui_components import FormRow
from modules.paths import script_path, data_path # pylint: disable=unused-import
from modules.dml import directml_override_opts
import modules.scripts
@@ -185,11 +184,11 @@ def create_ui(startup_timer = None):
res = comp(label=info.label, value=fun(), elem_id=elem_id, **args)
ui_common.create_refresh_button(res, info.refresh, info.component_args, f"refresh_{key}")
else:
with FormRow():
with gr.Row():
res = comp(label=info.label, value=fun(), elem_id=elem_id, **args)
ui_common.create_refresh_button(res, info.refresh, info.component_args, f"refresh_{key}")
elif info.folder is not None:
with FormRow():
with gr.Row():
res = comp(label=info.label, value=fun(), elem_id=elem_id, elem_classes="folder-selector", **args)
# ui_common.create_browse_button(res, f"folder_{key}")
else: