add hide_config
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user