rishabhpr commited on
Commit
35649b2
·
verified ·
1 Parent(s): bd6f4eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": "system", "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
 
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