arshad-ml commited on
Commit
0dfa58e
1 Parent(s): b32eb18

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -19,9 +19,12 @@ def load_answer(question):
19
 
20
  assistant_answer = chat(st.session_state.sessionMessages)
21
 
22
- st.session_state.sessionMessages.append(
23
- AIMessage(content=assistant_answer.content)
24
- )
 
 
 
25
 
26
  return assistant_answer
27
 
@@ -44,4 +47,3 @@ if submit:
44
  st.subheader("Answer:")
45
 
46
  st.write(response, key=1)
47
- st.write(answer, key=2)
 
19
 
20
  assistant_answer = chat(st.session_state.sessionMessages)
21
 
22
+ # st.session_state.sessionMessages.append(
23
+ # AIMessage(content=assistant_answer.content)
24
+ # )
25
+
26
+ st.session_state.sessionMessages.append(assistant_answer)
27
+ assistant_answer
28
 
29
  return assistant_answer
30
 
 
47
  st.subheader("Answer:")
48
 
49
  st.write(response, key=1)