all hiding of ui tabs

This commit is contained in:
Vladimir Mandic
2023-02-13 20:26:47 -05:00
committed by GitHub
parent 3715ece0ad
commit a320d157ec
2 changed files with 4 additions and 0 deletions

View File

@@ -1568,7 +1568,10 @@ def create_ui():
parameters_copypaste.connect_paste_params_buttons()
with gr.Tabs(elem_id="tabs") as tabs:
hidden_tabs = [x.lower().strip() for x in shared.opts.hidden_tabs.split(",")]
for interface, label, ifid in interfaces:
if label.lower() in hidden_tabs:
continue
with gr.TabItem(label, id=ifid, elem_id='tab_' + ifid):
interface.render()