Update app.py
Browse files
app.py
CHANGED
@@ -72,12 +72,15 @@ def assistant_response(response):
|
|
72 |
full_response += chunk + " "
|
73 |
time.sleep(0.05)
|
74 |
# Add a blinking cursor to simulate typing
|
75 |
-
|
76 |
-
|
77 |
# Add assistant response to chat history
|
78 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
79 |
|
80 |
-
|
|
|
|
|
|
|
81 |
|
82 |
|
83 |
# if prompt := st.chat_input("What kind of class are you looking for?"):
|
|
|
72 |
full_response += chunk + " "
|
73 |
time.sleep(0.05)
|
74 |
# Add a blinking cursor to simulate typing
|
75 |
+
message_placeholder.markdown(full_response + "▌")
|
76 |
+
message_placeholder.markdown(full_response)
|
77 |
# Add assistant response to chat history
|
78 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
79 |
|
80 |
+
if prompt := st.chat_input("What kind of class are you looking for?"):
|
81 |
+
with st.chat_message("user"):
|
82 |
+
st.markdown(prompt)
|
83 |
+
assistant_response("Yah I'm tired af right now boi")
|
84 |
|
85 |
|
86 |
# if prompt := st.chat_input("What kind of class are you looking for?"):
|