JohnAlexander23 commited on
Commit
d34e352
1 Parent(s): 743cb15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -147,7 +147,7 @@ if st.button("Get Response"):
147
  st.write("Response:", response)
148
 
149
  # Save session button
150
- if st.button("Save Session", key="save_session", help="Save the current chat session", class_="save-session"):
151
  st.session_state.previous_sessions.append(st.session_state.chat_history)
152
  st.session_state.chat_history = [
153
  {"role": "system", "content": "you are a helpful assistant. Take the input from the users and try to provide as detailed response as possible. Provide proper examples to help the user. Try to mention references or provide citations to make it more detail-oriented."}
@@ -169,3 +169,4 @@ st.markdown(
169
 
170
 
171
 
 
 
147
  st.write("Response:", response)
148
 
149
  # Save session button
150
+ if st.button("Save Session"):
151
  st.session_state.previous_sessions.append(st.session_state.chat_history)
152
  st.session_state.chat_history = [
153
  {"role": "system", "content": "you are a helpful assistant. Take the input from the users and try to provide as detailed response as possible. Provide proper examples to help the user. Try to mention references or provide citations to make it more detail-oriented."}
 
169
 
170
 
171
 
172
+