Update app.py
Browse files
app.py
CHANGED
|
@@ -81,16 +81,18 @@ if "messages" not in st.session_state:
|
|
| 81 |
st.session_state.messages = []
|
| 82 |
assistant_response(initial_message)
|
| 83 |
|
| 84 |
-
|
| 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)
|
| 91 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
| 92 |
assistant_response("Yah I'm tired af right now boi")
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
# if prompt := st.chat_input("What kind of class are you looking for?"):
|
|
|
|
| 81 |
st.session_state.messages = []
|
| 82 |
assistant_response(initial_message)
|
| 83 |
|
| 84 |
+
|
|
|
|
|
|
|
| 85 |
|
| 86 |
if prompt := st.chat_input("What kind of class are you looking for?"):
|
|
|
|
|
|
|
| 87 |
st.session_state.messages.append({"role": "user", "content": prompt})
|
| 88 |
assistant_response("Yah I'm tired af right now boi")
|
| 89 |
|
| 90 |
+
for message in st.session_state.messages:
|
| 91 |
+
with st.chat_message(message["role"]):
|
| 92 |
+
st.markdown(message["content"])
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
|
| 96 |
|
| 97 |
|
| 98 |
# if prompt := st.chat_input("What kind of class are you looking for?"):
|