Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ user_input = st.text_input("Ask a question:", key="input")
|
|
117 |
if st.button("Submit"):
|
118 |
if user_input:
|
119 |
result = st.session_state.qa_chain(user_input)
|
120 |
-
answer = result["
|
121 |
st.session_state.history.append({"question": user_input, "answer": answer})
|
122 |
|
123 |
# Display chat history using streamlit-chat
|
|
|
117 |
if st.button("Submit"):
|
118 |
if user_input:
|
119 |
result = st.session_state.qa_chain(user_input)
|
120 |
+
answer = result["result"]
|
121 |
st.session_state.history.append({"question": user_input, "answer": answer})
|
122 |
|
123 |
# Display chat history using streamlit-chat
|