Update app.py
Browse files
app.py
CHANGED
@@ -59,9 +59,6 @@ units = st.slider(
|
|
59 |
# st.markdown(message["content"])
|
60 |
|
61 |
|
62 |
-
for message in st.session_state.messages:
|
63 |
-
with st.chat_message(message["role"]):
|
64 |
-
st.markdown(message["content"])
|
65 |
|
66 |
assistant = st.chat_message("assistant")
|
67 |
initial_message = "How can I help you today?"
|
@@ -84,6 +81,10 @@ if "messages" not in st.session_state:
|
|
84 |
st.session_state.messages = []
|
85 |
assistant_response(initial_message)
|
86 |
|
|
|
|
|
|
|
|
|
87 |
if prompt := st.chat_input("What kind of class are you looking for?"):
|
88 |
with st.chat_message("user"):
|
89 |
st.markdown(prompt)
|
|
|
59 |
# st.markdown(message["content"])
|
60 |
|
61 |
|
|
|
|
|
|
|
62 |
|
63 |
assistant = st.chat_message("assistant")
|
64 |
initial_message = "How can I help you today?"
|
|
|
81 |
st.session_state.messages = []
|
82 |
assistant_response(initial_message)
|
83 |
|
84 |
+
for message in st.session_state.messages:
|
85 |
+
with st.chat_message(message["role"]):
|
86 |
+
st.markdown(message["content"])
|
87 |
+
|
88 |
if prompt := st.chat_input("What kind of class are you looking for?"):
|
89 |
with st.chat_message("user"):
|
90 |
st.markdown(prompt)
|