bhulston commited on
Commit
7026099
·
1 Parent(s): f573c2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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
- assistant.markdown(full_response + "▌")
76
- assistant.markdown(full_response)
77
  # Add assistant response to chat history
78
  st.session_state.messages.append({"role": "assistant", "content": full_response})
79
 
80
- assistant_response("Yah I'm tired af right now boi")
 
 
 
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?"):