add hide_config

This commit is contained in:
harry
2024-04-26 14:48:33 +08:00
parent 376955d4a0
commit c161ab3124
2 changed files with 149 additions and 143 deletions

View File

@@ -142,6 +142,11 @@ listen_port = 8502
# 文生视频时的最大并发任务数
max_concurrent_tasks = 5
# webui界面是否显示配置项
# webui hide baisc config panel
hide_config = false
[whisper]
# Only effective when subtitle_provider is "whisper"

View File

@@ -150,7 +150,8 @@ def tr(key):
st.write(tr("Get Help"))
with st.expander(tr("Basic Settings"), expanded=False):
if not config.app.get("hide_config", False):
with st.expander(tr("Basic Settings"), expanded=False):
config_panels = st.columns(3)
left_config_panel = config_panels[0]
middle_config_panel = config_panels[1]