aloatalpine commited on
Commit
2c3b527
·
1 Parent(s): fe50a81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ Right now your student seems frustrated. Please provide more encouragement in yo
56
  """
57
 
58
  context_conclusion = """
59
- You are now at the very end of the session and you need to conclude the session immediately no matter where the conversation was. In your next response, wrap up the session by calling out that this is the end of the session. If the session ends at the user's request, also call it out. Remind the student to fill out the feedback form, but close the session with powerful words of encouragement and a recap of the highlights from this session. Remind the student about the session on 10am Aug 10th 2023. Today’s date is Aug 3rd 2023.
60
  """
61
 
62
  context_student = """
@@ -139,7 +139,7 @@ if st.sidebar.button('Conclude Session'):
139
  full_response = ""
140
  for response in openai.ChatCompletion.create(
141
  model=st.session_state["openai_model"],
142
- messages=[ st.session_state.tutor_conclusion_only_message_system_prompt ] + [
143
  { "role": name_to_role_gpt_as_tutor(m["name"]), "content": m["content"] }
144
  for m in st.session_state.messages
145
  ],
 
56
  """
57
 
58
  context_conclusion = """
59
+ As this session approaches its conclusion, ensure you end it promptly regardless of the current topic of conversation. In your forthcoming response, recognize the previous response from the student and emphasize that the session is concluding. If the student chooses to end the session, acknowledge their decision. Encourage the student to complete the feedback form. Finish with uplifting words and a brief summary of the session's main points. Lastly, remind the student of their next session on August 10th, 2023 at 10am. Remember, today's date is August 3rd, 2023.
60
  """
61
 
62
  context_student = """
 
139
  full_response = ""
140
  for response in openai.ChatCompletion.create(
141
  model=st.session_state["openai_model"],
142
+ messages=[ st.session_state.tutor_conclusion_message_system_prompt ] + [
143
  { "role": name_to_role_gpt_as_tutor(m["name"]), "content": m["content"] }
144
  for m in st.session_state.messages
145
  ],