CosmoAI commited on
Commit
f706a7d
1 Parent(s): f6a8248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -63,17 +63,16 @@ def get_conversation_chain(vectorstore):
63
  def handle_userinput(user_question):
64
  response = st.session_state.conversation
65
  reply = response.run(user_question)
66
- with st.chat_message("assistant"):
67
- st.write(reply)
68
- st.session_state.chat_history = response['chat_history']
69
-
70
- for i, message in enumerate(st.session_state.chat_history):
71
- if i % 2 == 0:
72
- st.write(user_template.replace(
73
- "{{MSG}}", message.content), unsafe_allow_html=True)
74
- else:
75
- st.write(bot_template.replace(
76
- "{{MSG}}", message.content), unsafe_allow_html=True)
77
 
78
 
79
  def main():
 
63
  def handle_userinput(user_question):
64
  response = st.session_state.conversation
65
  reply = response.run(user_question)
66
+ st.write(reply)
67
+ # st.session_state.chat_history = response['chat_history']
68
+
69
+ # for i, message in enumerate(st.session_state.chat_history):
70
+ # if i % 2 == 0:
71
+ # st.write(user_template.replace(
72
+ # "{{MSG}}", message.content), unsafe_allow_html=True)
73
+ # else:
74
+ # st.write(bot_template.replace(
75
+ # "{{MSG}}", message.content), unsafe_allow_html=True)
 
76
 
77
 
78
  def main():