提交 9f07ead5 作者: imClumsyPanda

update webui.py

上级 24223cfb
...@@ -175,7 +175,7 @@ def change_chunk_conent(mode, label_conent, history): ...@@ -175,7 +175,7 @@ def change_chunk_conent(mode, label_conent, history):
if mode: if mode:
return gr.update(visible=True), history + [[None, f"【已开启{conent}】"]] return gr.update(visible=True), history + [[None, f"【已开启{conent}】"]]
else: else:
return gr.update(visible=False), history + [[None, f"[已关闭{conent}]"]] return gr.update(visible=False), history + [[None, f"【已关闭{conent}】"]]
def add_vs_name(vs_name, vs_list, chatbot): def add_vs_name(vs_name, vs_list, chatbot):
...@@ -245,7 +245,7 @@ with gr.Blocks(css=block_css) as demo: ...@@ -245,7 +245,7 @@ with gr.Blocks(css=block_css) as demo:
interactive=True, interactive=True,
value=vs_list.value[0] if len(vs_list.value) > 0 else None value=vs_list.value[0] if len(vs_list.value) > 0 else None
) )
vs_name = gr.Textbox(label="请输入新建知识库名称", vs_name = gr.Textbox(label="请输入新建知识库名称,当前知识库命名暂不支持中文",
lines=1, lines=1,
interactive=True, interactive=True,
visible=True) visible=True)
...@@ -327,7 +327,7 @@ with gr.Blocks(css=block_css) as demo: ...@@ -327,7 +327,7 @@ with gr.Blocks(css=block_css) as demo:
label="请选择要加载的知识库", label="请选择要加载的知识库",
interactive=True, interactive=True,
value=vs_list.value[0] if len(vs_list.value) > 0 else None) value=vs_list.value[0] if len(vs_list.value) > 0 else None)
vs_name = gr.Textbox(label="请输入新建知识库名称", vs_name = gr.Textbox(label="请输入新建知识库名称,当前知识库命名暂不支持中文",
lines=1, lines=1,
interactive=True, interactive=True,
visible=True) visible=True)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论