Carlosito16 commited on
Commit
25250d6
1 Parent(s): 2f51f5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -138,13 +138,13 @@ def new_retrieve_answer():
138
  answer = conversational_qa_memory_retriever({"question": prompt_answer, })
139
  log = {"timestamp": datetime.datetime.now(),
140
  "question":st.session_state.my_text_input,
141
- "generated_answer": answer[6:],
142
  "rating":0 }
143
 
144
  st.session_state.history.append(log)
145
  update_worksheet_qa()
146
  st.session_state.chat_history.append({"message": st.session_state.my_text_input, "is_user": True})
147
- st.session_state.chat_history.append({"message": answer[6:] , "is_user": False})
148
 
149
  st.session_state.my_text_input = ""
150
 
 
138
  answer = conversational_qa_memory_retriever({"question": prompt_answer, })
139
  log = {"timestamp": datetime.datetime.now(),
140
  "question":st.session_state.my_text_input,
141
+ "generated_answer": answer['answer'][6:],
142
  "rating":0 }
143
 
144
  st.session_state.history.append(log)
145
  update_worksheet_qa()
146
  st.session_state.chat_history.append({"message": st.session_state.my_text_input, "is_user": True})
147
+ st.session_state.chat_history.append({"message": answer['answer'][6:] , "is_user": False})
148
 
149
  st.session_state.my_text_input = ""
150