Spaces:
Runtime error
Runtime error
Hemanth Sai Garladinne
commited on
Commit
β’
98861d1
1
Parent(s):
b22dbe5
Update 2_π€_bot.py
Browse files
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 π§"
|
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":
|