Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ with open("prompt.txt", "r") as file:
|
|
| 13 |
|
| 14 |
# Initialize chat history
|
| 15 |
if "messages" not in st.session_state:
|
| 16 |
-
st.session_state.messages = [{"role": "
|
| 17 |
|
| 18 |
# Display chat messages from history on app rerun
|
| 19 |
for message in st.session_state.messages[1:]: # Skip the system message
|
|
|
|
| 13 |
|
| 14 |
# Initialize chat history
|
| 15 |
if "messages" not in st.session_state:
|
| 16 |
+
st.session_state.messages = [{"role": "assistant", "content": system_prompt}]
|
| 17 |
|
| 18 |
# Display chat messages from history on app rerun
|
| 19 |
for message in st.session_state.messages[1:]: # Skip the system message
|