jeremierostan commited on
Commit
c8a68fe
·
verified ·
1 Parent(s): c9bc2ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -17
app.py CHANGED
@@ -91,31 +91,53 @@ def understand_content(api_key, text, images, progress=gr.Progress()):
91
 
92
  progress(0.5, desc="Generating unit plan...")
93
  # Generate response from Gemini
94
- prompt = Template("""
95
  You are an expert instructional designer.
96
  Below are materials shared by a teacher. Your role is to reverse-engineer the unit planner for this content.
97
  To do so:
98
  1) Read the content carefully
99
  2) Create a unit planner for this content that follows this exact structure:
100
- {{ unit_plan_structure }}
101
- """).render(unit_plan_structure="""
102
  # Standards
103
- # Transfer Goal
104
- # Essential Questions
105
- # Enduring Understandings
106
- # Students will know
107
- # Students will be able to
 
 
 
 
 
108
  # Formative Assessments
109
  # Summative Assessments
110
- # Scope and Sequence
111
- # Unit Overview
112
- # Potential barriers
113
- # Connections
114
- ## ISP Core Values
115
- ## IB Theory of Knowledge
116
- ## IB Approaches to Learning
117
- # Authentic Assessment
118
- """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
  response = client.models.generate_content(
121
  model="gemini-2.0-flash-exp",
 
91
 
92
  progress(0.5, desc="Generating unit plan...")
93
  # Generate response from Gemini
94
+ prompt = """
95
  You are an expert instructional designer.
96
  Below are materials shared by a teacher. Your role is to reverse-engineer the unit planner for this content.
97
  To do so:
98
  1) Read the content carefully
99
  2) Create a unit planner for this content that follows this exact structure:
 
 
100
  # Standards
101
+ - If the subject is English, use Common Core
102
+ - If the subject is Spanish use Common Core
103
+ - If the subject is Social Studies, use AERO
104
+ - If the subject is Mathematics, use AERO
105
+ - If the subject is Science, use NGSS
106
+ # Transfer Goal (This answers: "Why are we learning this?" How will students transfer their learning in "real-life" and in the future?)
107
+ # Essential Questions (What are the key questions that students will be asking, exploring, and answering, through this unit?)
108
+ # Enduring Understandings (This is the "U" in KUD and helps students answer the essential questions by connecting concepts.Students will understand that [connections between key concepts] and why [connections between key concepts])
109
+ # Students will know (This is the "K" in KUD, the content that students will use and process to construct concepts (the building blocks of understandings). Students will know [fact, formula, definition…])
110
+ # Students will be able to (This is the "D" in KUD, the skills that students will develop and use to process knowledge, concepts, understandings, and answer the essential questions. These skills should be connected to the command terms.)
111
  # Formative Assessments
112
  # Summative Assessments
113
+ # Scope and Sequence (This is a description of the overall flow of the unit. It includes an assessment plan and brief lesson objectives (along the learning scale and towards the summative)
114
+ # Unit Overview (This is a brief summation of everything above. What will students be learning, and why? How will they progressively develop and demonstrate their learning?)
115
+ # Potential barriers (This dentifies potential barriers to student learning)
116
+ # Connections
117
+ ## Connections to ISP Core Values
118
+ - Commitment to Excellence
119
+ - Strength in Diversity
120
+ - Compassion and Integrity
121
+ - Innovative Spirit
122
+ - Lasting Impact
123
+ ## Connections to IB Theory of Knowledge
124
+ ## Connections to IB Approaches to Learning (when relevant)
125
+ - Collaboration
126
+ - Communication
127
+ - Affective skills
128
+ - Reflection skills
129
+ - Information and media literacy skills
130
+ - Critical thinking skills
131
+ - Creative thinking skills
132
+ # Authentic Assessment : In addition to existing assessments, propose a potential GRASPS assessment:
133
+ Goal - Assign an authentic (real-life), exciting (challenging), and meaningful (relatable, impactful) project or problem to solve
134
+ Role - Give students an authentic, exciting, and meaningful role to play (e.g., acting as a journalist, a business consultant…)
135
+ Audience - Identify an authentic, exciting, and meaningful audience that students can serve and/or that can experience their product or performance
136
+ Situation - Create an authentic, exciting, and meaningful scenario or context for the project, product, or performance
137
+ Project/Product/Performance and Progress - Clarify what students are expected to do and how. This includes a plan that matches the learning scale and structures the scope and sequence of the unit (below). This also includes milestones and practice (formatives), as well as feedback and opportunities for reflection and revision.
138
+ Success Criteria - Provide a task-specific version of the learning scales, along with benchmark sheets
139
+ """
140
+ )
141
 
142
  response = client.models.generate_content(
143
  model="gemini-2.0-flash-exp",