bug fixes
Browse files
app.py
CHANGED
|
@@ -46,10 +46,10 @@ if st.session_state.context:
|
|
| 46 |
if question:
|
| 47 |
result = qa(question=question, context=st.session_state.context)
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
for chat in st.session_state.chat_history:
|
| 55 |
st.markdown(f"**You:** {chat['user']}")
|
|
|
|
| 46 |
if question:
|
| 47 |
result = qa(question=question, context=st.session_state.context)
|
| 48 |
|
| 49 |
+
# save convo
|
| 50 |
+
st.session_state.chat_history.append({"user": question, "bot": result["answer"]})
|
| 51 |
|
| 52 |
+
# Display chat
|
| 53 |
|
| 54 |
for chat in st.session_state.chat_history:
|
| 55 |
st.markdown(f"**You:** {chat['user']}")
|