eagle0504 commited on
Commit
50500f5
1 Parent(s): 366fbdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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