Commit e78c7fe2 by 陈正乐

知识库新增内容

parent ce1888e2
No preview for this file type
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -126,7 +126,7 @@ def main():
return history
def clear_tip(his):
if not his[0][0] and his[0][1] == "你好,我是新晨科技股份的人工智能助手小晨,如果您有低空经济相关问题,欢迎随时向我咨询。":
if not his[0][0] and his[0][1] == "你好,我是新晨科技股份的低空经济人工智能助手小晨,如果您有低空经济相关问题,欢迎随时向我咨询。":
return his[1:]
else:
return his
......@@ -144,7 +144,7 @@ def main():
chatbot = gr.Chatbot(bubble_full_width=False,
avatar_images=(ICON_PATH + '\\user2.png', ICON_PATH + "\\bot2.png"),
value=[[None,
"我是新晨科技股份有限公司开发的人工智能助手,名叫小晨,如果您有任何问题,欢迎随时向我咨询"]],
"你好,我是新晨科技股份的低空经济人工智能助手小晨,如果您有低空经济相关问题,欢迎随时向我咨询。"]],
height=400, show_copy_button=True,
show_label=False, line_breaks=True)
with gr.Row():
......
......@@ -82,5 +82,5 @@ def test_faiss_load():
if __name__ == "__main__":
# test_faiss_from_dir()
test_faiss_from_dir()
test_faiss_load()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment