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 max_concurrent_tasks = 5
# webui界面是否显示配置项
# webui hide baisc config panel
hide_config = false
[whisper] [whisper]
# Only effective when subtitle_provider is "whisper" # Only effective when subtitle_provider is "whisper"

View File

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