Spaces:
Sleeping
Sleeping
Commit
·
2c3b527
1
Parent(s):
fe50a81
Update app.py
Browse files
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 |
-
|
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.
|
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 |
],
|