Update Home.py
Browse files
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 |
-
|
13 |
with st.chat_message("user"):
|
14 |
-
|
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():
|