Rohankumar31 commited on
Commit
1f7dbdd
ยท
1 Parent(s): 450d692

Update stream.py

Browse files
Files changed (1) hide show
  1. stream.py +5 -1
stream.py CHANGED
@@ -3,7 +3,11 @@ from main import generate_text
3
  st.title("AI Chaperone ๐ŸŽ—๏ธ")
4
  st.write("AI Chaperone is an advanced AI assistant meticulously designed to provide unwavering support to individuals living with Alzheimer's disease.")
5
  if "messages" not in st.session_state:
6
- st.session_state.messages = ["Hi! I'm your virtual assistant you can ask any query to me"]
 
 
 
 
7
  for message in st.session_state.messages:
8
  with st.chat_message(message["role"]):
9
  st.markdown(message["content"])
 
3
  st.title("AI Chaperone ๐ŸŽ—๏ธ")
4
  st.write("AI Chaperone is an advanced AI assistant meticulously designed to provide unwavering support to individuals living with Alzheimer's disease.")
5
  if "messages" not in st.session_state:
6
+ st.session_state.messages = []
7
+ st.session_state.messages.append({
8
+ 'role':'assistant',
9
+ 'content':"Hi! I'm your virtual assistant you can ask any query to me"
10
+ })
11
  for message in st.session_state.messages:
12
  with st.chat_message(message["role"]):
13
  st.markdown(message["content"])