Spaces:
Runtime error
Runtime error
Rohankumar31
commited on
Commit
ยท
450d692
1
Parent(s):
0309d7c
Update stream.py
Browse files
stream.py
CHANGED
@@ -3,8 +3,7 @@ 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 = []
|
7 |
-
st.session_state.messages.append({'role':'assistant','content':"Hi! I'm your virtual assistant you can ask any query to me"})
|
8 |
for message in st.session_state.messages:
|
9 |
with st.chat_message(message["role"]):
|
10 |
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 = ["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"])
|