Spaces:
Running
Running
NazmulHasanNihal
commited on
Commit
•
024bb9a
1
Parent(s):
e368071
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ if "openai_model" not in st.session_state:
|
|
24 |
if "messages" not in st.session_state:
|
25 |
st.session_state.messages = [{"role": "system", "content":"you are a helpful assistant"}]
|
26 |
|
27 |
-
for message in st.session_state.
|
28 |
-
with st.chat_message("role"):
|
29 |
st.markdown(message["content"])
|
30 |
|
31 |
if prompt := st.chat_input("What is up"):
|
|
|
24 |
if "messages" not in st.session_state:
|
25 |
st.session_state.messages = [{"role": "system", "content":"you are a helpful assistant"}]
|
26 |
|
27 |
+
for message in st.session_state.messages:
|
28 |
+
with st.chat_message(message["role"]):
|
29 |
st.markdown(message["content"])
|
30 |
|
31 |
if prompt := st.chat_input("What is up"):
|