Update app.py
Browse files
app.py
CHANGED
@@ -12,29 +12,41 @@ if os.path.exists(".env"):
|
|
12 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
13 |
client = OpenAI(api_key=OPENAI_API_KEY)
|
14 |
|
15 |
-
# Define
|
16 |
REFLECTION_STEPS = [
|
17 |
{
|
18 |
-
"title": "
|
19 |
-
"question": "
|
20 |
-
"follow_up": "
|
21 |
-
"next_step": "
|
22 |
},
|
23 |
{
|
24 |
-
"title": "
|
25 |
-
"question": "
|
26 |
-
"follow_up": "
|
27 |
-
"next_step": "
|
28 |
},
|
29 |
{
|
30 |
-
"title": "
|
31 |
-
"question": "
|
32 |
-
"follow_up": "
|
33 |
-
"next_step": "
|
34 |
},
|
35 |
{
|
36 |
-
"title": "
|
37 |
-
"question": "Now, let
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
"follow_up": "You mentioned **{response}**. How do you see this practice supporting students' proportional reasoning?",
|
39 |
"next_step": "Problem Posing Activity"
|
40 |
},
|
|
|
12 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
13 |
client = OpenAI(api_key=OPENAI_API_KEY)
|
14 |
|
15 |
+
# Define pre-video and post-video reflection steps
|
16 |
REFLECTION_STEPS = [
|
17 |
{
|
18 |
+
"title": "Pre-Video Reflection",
|
19 |
+
"question": "Before watching the video, let's reflect on your approach to the problem.\n\nHow did you solve the task? What strategies did you use?",
|
20 |
+
"follow_up": "You used **{response}**—interesting! Why do you think this strategy is effective for solving proportional reasoning problems?",
|
21 |
+
"next_step": "Watch the Video"
|
22 |
},
|
23 |
{
|
24 |
+
"title": "Watch the Video",
|
25 |
+
"question": "Now, please watch the video at the provided link and observe how the teacher facilitates problem-solving. Let me know when you're done watching.",
|
26 |
+
"follow_up": "Great! Now that you've watched the video, let's reflect on key aspects of the lesson.",
|
27 |
+
"next_step": "Post-Video Reflection - Observing Creativity-Directed Practices"
|
28 |
},
|
29 |
{
|
30 |
+
"title": "Post-Video Reflection - Observing Creativity-Directed Practices",
|
31 |
+
"question": "Let's start with **Observing Creativity-Directed Practices.**\n\nWhat stood out to you the most about how the teacher encouraged student creativity?",
|
32 |
+
"follow_up": "You mentioned **{response}**. Can you explain how that supported students' creative problem-solving?",
|
33 |
+
"next_step": "Post-Video Reflection - Small Group Interactions"
|
34 |
},
|
35 |
{
|
36 |
+
"title": "Post-Video Reflection - Small Group Interactions",
|
37 |
+
"question": "Now, let's reflect on **Small Group Interactions.**\n\nWhat did you notice about how the teacher guided student discussions?",
|
38 |
+
"follow_up": "Interesting! You noted **{response}**. How do you think that helped students deepen their understanding?",
|
39 |
+
"next_step": "Post-Video Reflection - Student Reasoning and Connections"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"title": "Post-Video Reflection - Student Reasoning and Connections",
|
43 |
+
"question": "Next, let’s discuss **Student Reasoning and Connections.**\n\nHow did students reason through the task? What connections did they make between percent relationships and fractions?",
|
44 |
+
"follow_up": "That’s a great point about **{response}**. Can you explain why this was significant in their problem-solving?",
|
45 |
+
"next_step": "Post-Video Reflection - Common Core Practice Standards"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"title": "Post-Video Reflection - Common Core Practice Standards",
|
49 |
+
"question": "Now, let’s reflect on **Common Core Practice Standards.**\n\nWhich Common Core practice standards do you think the teacher emphasized during the lesson?",
|
50 |
"follow_up": "You mentioned **{response}**. How do you see this practice supporting students' proportional reasoning?",
|
51 |
"next_step": "Problem Posing Activity"
|
52 |
},
|