Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,11 +82,14 @@ def handle_userinput(user_question):
|
|
| 82 |
response = st.session_state.conversation({'question': user_question})
|
| 83 |
st.session_state.chat_history = response['chat_history']
|
| 84 |
|
|
|
|
| 85 |
for i, message in enumerate(st.session_state.chat_history):
|
| 86 |
if i % 2 == 0:
|
| 87 |
-
st.markdown(
|
|
|
|
| 88 |
else:
|
| 89 |
-
st.markdown(
|
|
|
|
| 90 |
|
| 91 |
|
| 92 |
def main():
|
|
|
|
| 82 |
response = st.session_state.conversation({'question': user_question})
|
| 83 |
st.session_state.chat_history = response['chat_history']
|
| 84 |
|
| 85 |
+
|
| 86 |
for i, message in enumerate(st.session_state.chat_history):
|
| 87 |
if i % 2 == 0:
|
| 88 |
+
st.markdown("**User:**")
|
| 89 |
+
st.markdown(message.content)
|
| 90 |
else:
|
| 91 |
+
st.markdown("**AI:**")
|
| 92 |
+
st.markdown(message.content)
|
| 93 |
|
| 94 |
|
| 95 |
def main():
|