Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -113,6 +113,12 @@ for message in st.session_state.messages:
|
|
113 |
with st.chat_message(message["role"]):
|
114 |
st.markdown(message["content"])
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
# Path to the Markdown file
|
117 |
md_file_path = 'docs/yiqiao_yin.md'
|
118 |
|
|
|
113 |
with st.chat_message(message["role"]):
|
114 |
st.markdown(message["content"])
|
115 |
|
116 |
+
# Display chat messages from history on app rerun
|
117 |
+
for message in st.session_state.messages:
|
118 |
+
if message["role"] != "system": # Skip system messages
|
119 |
+
with st.chat_message(message["role"]):
|
120 |
+
st.markdown(message["content"])
|
121 |
+
|
122 |
# Path to the Markdown file
|
123 |
md_file_path = 'docs/yiqiao_yin.md'
|
124 |
|