Skip to content

Commit

Permalink
Update 2_πŸ€–_bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HemanthSai7 authored Dec 20, 2023
1 parent b22dbe5 commit 98861d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/pages/2_πŸ€–_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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":
Expand Down

0 comments on commit 98861d1

Please sign in to comment.