Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -128,15 +128,9 @@ def handle_userinput(user_question):
|
|
128 |
|
129 |
for i, message in enumerate(st.session_state.chat_history):
|
130 |
if i % 2 == 0:
|
131 |
-
st.write(
|
132 |
-
user_template.replace("{{MSG}}", message.content),
|
133 |
-
unsafe_allow_html=True,
|
134 |
-
)
|
135 |
else:
|
136 |
-
st.write(
|
137 |
-
bot_template.replace("{{MSG}}", message.content), unsafe_allow_html=True
|
138 |
-
)
|
139 |
-
|
140 |
|
141 |
def main():
|
142 |
"""Put it all together"""
|
|
|
128 |
|
129 |
for i, message in enumerate(st.session_state.chat_history):
|
130 |
if i % 2 == 0:
|
131 |
+
st.write("π User: " + message.content)
|
|
|
|
|
|
|
132 |
else:
|
133 |
+
st.write("π€ ChatBot: " + message.content)
|
|
|
|
|
|
|
134 |
|
135 |
def main():
|
136 |
"""Put it all together"""
|