From a7637d34567d6350bbc809b521e8bdc4cc481e76 Mon Sep 17 00:00:00 2001 From: Paul Lam Date: Fri, 29 Sep 2023 13:58:32 +0900 Subject: [PATCH] replaced chat UI with Q&A UI --- mind_palace/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mind_palace/app.py b/mind_palace/app.py index b5c7951..8ddc5d3 100644 --- a/mind_palace/app.py +++ b/mind_palace/app.py @@ -9,8 +9,8 @@ xml_dir = "./resources/xmls/12-pdfs-from-steve-aug-22/" gpt_model = "gpt-3.5-turbo" -st.set_page_config(page_title="Chatting with Steve's PDFs") -st.title("Chat with Steve's PDFs 💬") +st.set_page_config(page_title="Q&A with Steve's PDFs") +st.title("Q&A with Steve's PDFs 💬") with st.sidebar: st.markdown("Conversation History") @@ -54,6 +54,8 @@ def get_welcome_message(abstracts): "content": "Ask me a question about these papers.", }, ] +else: + st.session_state.messages = [] if prompt := st.chat_input(