From 82aa805bf3a54873b28ff1037087816808bc8f47 Mon Sep 17 00:00:00 2001 From: imClumsyPanda Date: Thu, 3 Aug 2023 23:42:55 +0800 Subject: [PATCH] update requirements.txt --- requirements.txt | 1 + webui.py | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/requirements.txt b/requirements.txt index 89eef3d..d3da260 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,3 +19,4 @@ unstructured[local-inference] streamlit>=1.25.0 streamlit-option-menu streamlit-chatbox>=1.1.0 +httpx diff --git a/webui.py b/webui.py index 3b89998..e776065 100644 --- a/webui.py +++ b/webui.py @@ -14,6 +14,28 @@ api = ApiRequest() if __name__ == "__main__": st.set_page_config("langchain-chatglm WebUI", layout="wide") + # pages = {"对话1": {"icon": "chat", + # "func": dialogue_page, + # }, + # "对话2": {"icon": "chat", + # "func": dialogue_page, + # }, + # "对话3": {"icon": "chat", + # "func": dialogue_page, + # }, + # "新建对话": {"icon": "plus-circle", + # "func": dialogue_page, + # }, + # "---": {"icon": None, + # "func": None}, + # "知识库管理": {"icon": "database-fill-gear", + # "func": knowledge_base_page, + # }, + # "模型配置": {"icon": "gear", + # "func": model_config_page, + # } + # } + pages = {"对话": {"icon": "chat", "func": dialogue_page, },