Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def main(vectorstore):
|
|
86 |
def handle_userinput(user_question,vectorstore):
|
87 |
Rag_chain = create_conversational_rag_chain(vectorstore)
|
88 |
msgs = StreamlitChatMessageHistory(key="special_app_key")
|
89 |
-
response =
|
90 |
st.session_state.chat_history = response['chat_history']
|
91 |
|
92 |
for i, message in enumerate(st.session_state.chat_history):
|
|
|
86 |
def handle_userinput(user_question,vectorstore):
|
87 |
Rag_chain = create_conversational_rag_chain(vectorstore)
|
88 |
msgs = StreamlitChatMessageHistory(key="special_app_key")
|
89 |
+
response = Rag_chain({'question': user_question})
|
90 |
st.session_state.chat_history = response['chat_history']
|
91 |
|
92 |
for i, message in enumerate(st.session_state.chat_history):
|