From 98861d140c2ec1a3adda432e8e1b2c4dbe1a3165 Mon Sep 17 00:00:00 2001 From: Hemanth Sai Garladinne <73033596+HemanthSai7@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:20:12 +0530 Subject: [PATCH] =?UTF-8?q?Update=202=5F=F0=9F=A4=96=5Fbot.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "frontend/pages/2_\360\237\244\226_bot.py" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/frontend/pages/2_\360\237\244\226_bot.py" "b/frontend/pages/2_\360\237\244\226_bot.py" index cccd6fb..91fbc58 100644 --- "a/frontend/pages/2_\360\237\244\226_bot.py" +++ "b/frontend/pages/2_\360\237\244\226_bot.py" @@ -81,7 +81,7 @@ def generate_mistral_response(question: str): answer = response["result"]["answer"] - with st.expander("Source documents 🧐", expanded=True): + with st.expander("Source documents 🧐"): source_documents = response["result"]["source_documents"] display_source_document(source_documents) @@ -102,7 +102,7 @@ def generate_mistral_response(question: str): st.write(prompt) # ask question -st.write(st.session_state) +# st.write(st.session_state) # Generate a new response if last message is not from assistant if st.session_state.messages[-1]["role"] != "assistant":