pratikshahp commited on
Commit
d55edd5
·
verified ·
1 Parent(s): 595a71e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ st.title("Simple OpenAI Chatbot")
23
 
24
  # Initialize the chat history
25
  if "messages" not in st.session_state:
26
- st.session_state.messages = [{"role": "system", "content": "You are a helpful assistant."}]
27
 
28
  # Display chat history
29
  for message in st.session_state.messages:
@@ -52,5 +52,5 @@ if st.button("Send"):
52
 
53
  # Clear chat
54
  if st.button("Clear Chat"):
55
- st.session_state.messages = [{"role": "system", "content": "You are a helpful assistant."}]
56
  st.experimental_rerun()
 
23
 
24
  # Initialize the chat history
25
  if "messages" not in st.session_state:
26
+ st.session_state.messages = [{"role": "system", "content": "You are a helpful assistant. Reply in 20 words"}]
27
 
28
  # Display chat history
29
  for message in st.session_state.messages:
 
52
 
53
  # Clear chat
54
  if st.button("Clear Chat"):
55
+ st.session_state.messages = [{"role": "system", "content": "You are a helpful assistant. Reply in 20 words"}]
56
  st.experimental_rerun()