alibicer commited on
Commit
4c2d859
·
verified ·
1 Parent(s): c910196

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -15
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 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
- "next_step": "Small Group Interactions"
22
  },
23
  {
24
- "title": "Small Group Interactions",
25
- "question": "Let's move to **Small Group Interactions.**\n\nWhat did you notice about how the teacher guided student discussions?",
26
- "follow_up": "You noted **{response}**. How do you think that influenced students' understanding of the problem?",
27
- "next_step": "Student Reasoning and Connections"
28
  },
29
  {
30
- "title": "Student Reasoning and Connections",
31
- "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?",
32
- "follow_up": "That’s a great point about **{response}**. Can you explain why this was significant in their problem-solving process?",
33
- "next_step": "Common Core Practice Standards"
34
  },
35
  {
36
- "title": "Common Core Practice Standards",
37
- "question": "Now, lets discuss **Common Core Practice Standards.**\n\nWhich Common Core practice standards do you think the teacher emphasized during the lesson?",
 
 
 
 
 
 
 
 
 
 
 
 
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
  },