Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -0
src/streamlit_app.py
CHANGED
|
@@ -78,6 +78,8 @@ def loadchats():
|
|
| 78 |
state = workflow.get_state(config)
|
| 79 |
messages = state.values.get("messages", [])
|
| 80 |
for message in messages:
|
|
|
|
|
|
|
| 81 |
if isinstance(message, HumanMessage):
|
| 82 |
with st.chat_message("human"):
|
| 83 |
st.write(message.content)
|
|
|
|
| 78 |
state = workflow.get_state(config)
|
| 79 |
messages = state.values.get("messages", [])
|
| 80 |
for message in messages:
|
| 81 |
+
if(not message.content):
|
| 82 |
+
continue
|
| 83 |
if isinstance(message, HumanMessage):
|
| 84 |
with st.chat_message("human"):
|
| 85 |
st.write(message.content)
|