Spaces:
Runtime error
Runtime error
Commit
·
c03ffff
1
Parent(s):
2b31cd9
Update app.py
Browse filesjust added } resolved error
app.py
CHANGED
@@ -69,7 +69,7 @@ if user_input:
|
|
69 |
for row in rows:
|
70 |
if {"role": row[0], "parts": [{"text": row[1]}]} not in displayed_msgs:
|
71 |
st.markdown(f"**{row[0].title()}:** {row[1]}")
|
72 |
-
displayed_msgs.append({"role": row[0], "parts": [{"text": row[1]]})
|
73 |
|
74 |
for message in chat_history:
|
75 |
if {"role": message["role"], "parts": [message["parts"][0]]} not in rows:
|
|
|
69 |
for row in rows:
|
70 |
if {"role": row[0], "parts": [{"text": row[1]}]} not in displayed_msgs:
|
71 |
st.markdown(f"**{row[0].title()}:** {row[1]}")
|
72 |
+
displayed_msgs.append({"role": row[0], "parts": [{"text": row[1]}]})
|
73 |
|
74 |
for message in chat_history:
|
75 |
if {"role": message["role"], "parts": [message["parts"][0]]} not in rows:
|