CosmoAI commited on
Commit
8db0bf8
·
1 Parent(s): e5c02e6

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +3 -3
Home.py CHANGED
@@ -4,14 +4,14 @@ from streamlit_option_menu import option_menu
4
 
5
  def homepage():
6
  st.write("Timeline")
7
- allmessages =[]
8
  if "messages" not in st.session_state:
9
  st.session_state.messages = []
10
 
11
  if usrmsg := st.chat_input("Share a thought"):
12
- allmessages = st.session_state.messages.append(usrmsg)
13
  with st.chat_message("user"):
14
- allmessages
15
 
16
 
17
  def chat():
 
4
 
5
  def homepage():
6
  st.write("Timeline")
7
+ # allmessages =[]
8
  if "messages" not in st.session_state:
9
  st.session_state.messages = []
10
 
11
  if usrmsg := st.chat_input("Share a thought"):
12
+ st.session_state.messages.append(usrmsg)
13
  with st.chat_message("user"):
14
+ st.session_state.messages
15
 
16
 
17
  def chat():