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