Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
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():
|