Veda0718 commited on
Commit
f70d749
·
verified ·
1 Parent(s): 7b6ce26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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({"question": user_input})
111
- st.session_state.history.append({"question": user_input, "answer": result["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']}")