Spaces:
Sleeping
Sleeping
Update streamlit-1.25.py
Browse files- pages/streamlit-1.25.py +13 -13
pages/streamlit-1.25.py
CHANGED
@@ -62,17 +62,17 @@ if st.button('Three cheers'):
|
|
62 |
if "chat_messages" not in st.session_state:
|
63 |
st.session_state.chat_messages = []
|
64 |
|
65 |
-
prompt = st.chat_input("Say something")
|
66 |
-
if prompt:
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
for message in st.session_state.chat_messages[::-1]:
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
|
|
|
62 |
if "chat_messages" not in st.session_state:
|
63 |
st.session_state.chat_messages = []
|
64 |
|
65 |
+
# prompt = st.chat_input("Say something")
|
66 |
+
# if prompt:
|
67 |
+
# st.session_state.chat_messages.append({"type": "user", "message": prompt})
|
68 |
+
# st.session_state.chat_messages.append({"type": "bot", "message": "Hello!", "chart": np.random.randn(30, 3)})
|
69 |
+
#
|
70 |
+
# for message in st.session_state.chat_messages[::-1]:
|
71 |
+
# if message["type"] == "user":
|
72 |
+
# with st.chat_message("You"):
|
73 |
+
# st.write(message["message"])
|
74 |
+
# else:
|
75 |
+
# with st.chat_message("Bot"):
|
76 |
+
# st.write(message["message"])
|
77 |
+
# st.line_chart(message["chart"])
|
78 |
|