Hemanth Sai Garladinne commited on
Commit
98861d1
β€’
1 Parent(s): b22dbe5

Update 2_πŸ€–_bot.py

Browse files
Files changed (1) hide show
  1. frontend/pages/2_πŸ€–_bot.py +2 -2
frontend/pages/2_πŸ€–_bot.py CHANGED
@@ -81,7 +81,7 @@ def generate_mistral_response(question: str):
81
 
82
  answer = response["result"]["answer"]
83
 
84
- with st.expander("Source documents 🧐", expanded=True):
85
  source_documents = response["result"]["source_documents"]
86
  display_source_document(source_documents)
87
 
@@ -102,7 +102,7 @@ if prompt := st.chat_input(
102
  st.write(prompt)
103
 
104
  # ask question
105
- st.write(st.session_state)
106
 
107
  # Generate a new response if last message is not from assistant
108
  if st.session_state.messages[-1]["role"] != "assistant":
 
81
 
82
  answer = response["result"]["answer"]
83
 
84
+ with st.expander("Source documents 🧐"):
85
  source_documents = response["result"]["source_documents"]
86
  display_source_document(source_documents)
87
 
 
102
  st.write(prompt)
103
 
104
  # ask question
105
+ # st.write(st.session_state)
106
 
107
  # Generate a new response if last message is not from assistant
108
  if st.session_state.messages[-1]["role"] != "assistant":