Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,8 +107,8 @@ if "history" not in st.session_state:
|
|
107 |
user_input = st.text_input("Ask a question:", key="input")
|
108 |
|
109 |
if user_input:
|
110 |
-
result = qa_chain(
|
111 |
-
st.session_state.history.append({"question": user_input, "answer": result
|
112 |
|
113 |
for entry in st.session_state.history:
|
114 |
st.write(f"**Question:** {entry['question']}")
|
|
|
107 |
user_input = st.text_input("Ask a question:", key="input")
|
108 |
|
109 |
if user_input:
|
110 |
+
result = qa_chain(user_input)
|
111 |
+
st.session_state.history.append({"question": user_input, "answer": result})
|
112 |
|
113 |
for entry in st.session_state.history:
|
114 |
st.write(f"**Question:** {entry['question']}")
|