Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ def handle_input():
|
|
38 |
def display_conversation():
|
39 |
for i, message in enumerate(st.session_state.history[-10:]): # Display last 10 messages
|
40 |
if i % 2 == 0:
|
41 |
-
st.markdown(f"<div style='background-color:#
|
42 |
else:
|
43 |
-
st.markdown(f"<div style='background-color:#
|
44 |
|
45 |
def get_message(user_input):
|
46 |
context = """
|
|
|
38 |
def display_conversation():
|
39 |
for i, message in enumerate(st.session_state.history[-10:]): # Display last 10 messages
|
40 |
if i % 2 == 0:
|
41 |
+
st.markdown(f"<div style='background-color:#f5f5f5;padding:10px;border-radius:10px;'>{message}</div> ", unsafe_allow_html=True)
|
42 |
else:
|
43 |
+
st.markdown(f"<div style='background-color:#e1f5fe;padding:10px;border-radius:10px;'>{message}</div> ", unsafe_allow_html=True)
|
44 |
|
45 |
def get_message(user_input):
|
46 |
context = """
|