Spaces:
Runtime error
Runtime error
Rohankumar31
commited on
Commit
ยท
1f7dbdd
1
Parent(s):
450d692
Update stream.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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"])
|