hashirehtisham commited on
Commit
d0f5dfb
·
verified ·
1 Parent(s): 5ef0cb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -55,7 +55,9 @@ st.title("Emotional Support Chatbot")
55
  st.write("Hello! I'm here to support you emotionally and answer any questions. How are you feeling today?")
56
  st.markdown("<p style='color:green;'>Developed by Hashir Ehtisham</p>", unsafe_allow_html=True)
57
 
58
- system_message = st.text_input("System message", value="You are a friendly Emotional Support Chatbot.", key="system_message")
 
 
59
 
60
  with st.expander("Settings"):
61
  max_tokens_options = [64, 128, 256, 512, 1024, 2048]
 
55
  st.write("Hello! I'm here to support you emotionally and answer any questions. How are you feeling today?")
56
  st.markdown("<p style='color:green;'>Developed by Hashir Ehtisham</p>", unsafe_allow_html=True)
57
 
58
+ # Set default system message directly
59
+ if 'system_message' not in st.session_state:
60
+ st.session_state.system_message = "You are a friendly Emotional Support Chatbot."
61
 
62
  with st.expander("Settings"):
63
  max_tokens_options = [64, 128, 256, 512, 1024, 2048]