Spaces:
Sleeping
Sleeping
John Graham Reynolds
commited on
Commit
Β·
3c6915f
1
Parent(s):
d7d1b15
try another avatar fix
Browse files
app.py
CHANGED
@@ -216,12 +216,12 @@ with main:
|
|
216 |
history = st.container(height=400)
|
217 |
with history:
|
218 |
for message in st.session_state["messages"]:
|
219 |
-
|
220 |
if message["role"] == "assistant":
|
221 |
avatar = MODEL_AVATAR_URL
|
222 |
-
else:
|
223 |
-
|
224 |
-
with st.chat_message(message["role"],avatar=
|
225 |
if message["content"] is not None:
|
226 |
st.markdown(message["content"])
|
227 |
if message["error"] is not None:
|
|
|
216 |
history = st.container(height=400)
|
217 |
with history:
|
218 |
for message in st.session_state["messages"]:
|
219 |
+
avatar = "π§βπ»"
|
220 |
if message["role"] == "assistant":
|
221 |
avatar = MODEL_AVATAR_URL
|
222 |
+
# else:
|
223 |
+
# avatar = "π§βπ»"
|
224 |
+
with st.chat_message(message["role"], avatar=MODEL_AVATAR_URL if message["role"] == "assistant" else "π§βπ»"):
|
225 |
if message["content"] is not None:
|
226 |
st.markdown(message["content"])
|
227 |
if message["error"] is not None:
|