Update app.py
Browse files
app.py
CHANGED
@@ -15,26 +15,32 @@ client = OpenAI(api_key=OPENAI_API_KEY)
|
|
15 |
# Define sequential reflection steps
|
16 |
REFLECTION_STEPS = [
|
17 |
{
|
18 |
-
"
|
19 |
-
"
|
|
|
20 |
},
|
21 |
{
|
22 |
-
"
|
|
|
23 |
"follow_up": "You noted **{response}**. How do you think that influenced students' understanding of the problem?"
|
24 |
},
|
25 |
{
|
26 |
-
"
|
|
|
27 |
"follow_up": "That’s a great point about **{response}**. Can you explain why this was significant in their problem-solving process?"
|
28 |
},
|
29 |
{
|
30 |
-
"
|
|
|
31 |
"follow_up": "You mentioned **{response}**. How do you see this practice supporting students' proportional reasoning?"
|
32 |
},
|
33 |
{
|
34 |
-
"
|
|
|
35 |
"follow_up": "That's an interesting problem! Does it allow for multiple solution paths? How does it connect to the Common Core practices we discussed?"
|
36 |
},
|
37 |
{
|
|
|
38 |
"question": "📚 **Final Reflection**\n\nWhat’s one change you will make in your own teaching based on this module?",
|
39 |
"follow_up": "That’s a great insight! How do you think implementing **{response}** will impact student learning?"
|
40 |
}
|
@@ -59,10 +65,11 @@ def respond(user_message, history):
|
|
59 |
if not user_message:
|
60 |
return "", history
|
61 |
|
62 |
-
# Determine current step in reflection process
|
63 |
reflection_index = len([h for h in history if "Reflection Step" in h[1]])
|
64 |
if reflection_index < len(REFLECTION_STEPS):
|
65 |
-
|
|
|
66 |
else:
|
67 |
next_reflection = "You've completed the reflections. Would you like to discuss anything further?"
|
68 |
|
|
|
15 |
# Define sequential reflection steps
|
16 |
REFLECTION_STEPS = [
|
17 |
{
|
18 |
+
"title": "Observing Creativity-Directed Practices",
|
19 |
+
"question": "Now that you've watched the video, let's start with **Observing Creativity-Directed Practices.**\n\nWhat stood out to you the most about how the teacher encouraged student creativity?",
|
20 |
+
"follow_up": "Interesting! You mentioned **{response}**. Can you explain why that strategy is effective in fostering creativity?"
|
21 |
},
|
22 |
{
|
23 |
+
"title": "Small Group Interactions",
|
24 |
+
"question": "Let's move to **Small Group Interactions.**\n\nWhat did you notice about how the teacher guided student discussions?",
|
25 |
"follow_up": "You noted **{response}**. How do you think that influenced students' understanding of the problem?"
|
26 |
},
|
27 |
{
|
28 |
+
"title": "Student Reasoning and Connections",
|
29 |
+
"question": "Next, let’s analyze **Student Reasoning and Connections.**\n\nHow did students reason through the task? What connections did they make between percent relationships and fractions?",
|
30 |
"follow_up": "That’s a great point about **{response}**. Can you explain why this was significant in their problem-solving process?"
|
31 |
},
|
32 |
{
|
33 |
+
"title": "Common Core Practice Standards",
|
34 |
+
"question": "Now, let’s discuss **Common Core Practice Standards.**\n\nWhich Common Core practice standards do you think the teacher emphasized during the lesson?",
|
35 |
"follow_up": "You mentioned **{response}**. How do you see this practice supporting students' proportional reasoning?"
|
36 |
},
|
37 |
{
|
38 |
+
"title": "Problem Posing Activity",
|
39 |
+
"question": "Let’s engage in a **Problem-Posing Activity.**\n\nBased on what you observed, pose a problem that encourages students to use visuals and proportional reasoning.",
|
40 |
"follow_up": "That's an interesting problem! Does it allow for multiple solution paths? How does it connect to the Common Core practices we discussed?"
|
41 |
},
|
42 |
{
|
43 |
+
"title": "Final Reflection",
|
44 |
"question": "📚 **Final Reflection**\n\nWhat’s one change you will make in your own teaching based on this module?",
|
45 |
"follow_up": "That’s a great insight! How do you think implementing **{response}** will impact student learning?"
|
46 |
}
|
|
|
65 |
if not user_message:
|
66 |
return "", history
|
67 |
|
68 |
+
# Determine the current step in the reflection process
|
69 |
reflection_index = len([h for h in history if "Reflection Step" in h[1]])
|
70 |
if reflection_index < len(REFLECTION_STEPS):
|
71 |
+
current_step = REFLECTION_STEPS[reflection_index]
|
72 |
+
next_reflection = current_step["question"]
|
73 |
else:
|
74 |
next_reflection = "You've completed the reflections. Would you like to discuss anything further?"
|
75 |
|