Merge pull request #321 from harry0703/dev

update tips and add hide_config
This commit is contained in:
Harry
2024-04-26 14:49:20 +08:00
committed by GitHub
2 changed files with 149 additions and 141 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]
@@ -209,6 +210,8 @@ with st.expander(tr("Basic Settings"), expanded=False):
##### Ollama配置说明
- **API Key**: 随便填写,比如 123
- **Base Url**: 一般为 http://localhost:11434/v1
- 如果 `MoneyPrinterTurbo` 和 `Ollama` **不在同一台机器上**,需要填写 `Ollama` 机器的IP地址
- 如果 `MoneyPrinterTurbo` 是 `Docker` 部署,建议填写 `http://host.docker.internal:11434/v1`
- **Model Name**: 使用 `ollama list` 查看,比如 `qwen:7b`
"""