jeremierostan commited on
Commit
2e35634
·
verified ·
1 Parent(s): 4c94649

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -100,18 +100,19 @@ def understand_content(text, images):
100
 
101
  # Generate response from Gemini
102
  prompt = """
103
- You are a teaching assistant. The teacher has materials, but needs to create a document that students will use in the teacher's absence to do the lesson independently.
104
- Analyze the following educational content and provide a structured response with:
105
- 1. Title (including subject)
106
- 2. Learning Objectives:
107
- * Know & Understand (Information and concepts students will be acquiring: 1-3 points)
108
- * Do (Skills students will be practicing / developing: 1-3 points)
109
- 3. Instructions (Brief overview)
110
- * Lesson (Expands on Know, Understand, Do, providing a summary of the learning providing a bulleted list students can refer to in the future to study)
111
- * Application (Sequence of activities to apply/practice the learning)
112
- * Deliverables (Submissions required + due date if indicated)
113
- * Extension (Opportunities to learn more, go deeper, or fast forward. Create them if they are not present)
114
- Format your response in a clear, structured manner using markdown headings and bullet points. Start a new line for each heading and subheading.
 
115
  """
116
  response = model.generate_content([prompt] + content)
117
 
 
100
 
101
  # Generate response from Gemini
102
  prompt = """
103
+ You are a teaching assistant.
104
+ The teacher has class materials for a lesson, but needs to create a document that students will use to complete the work in the teacher's absence and independently.
105
+ Analyze the attached educational content and provide a structured response in line with this template:
106
+ #1. 'Title' (including subject).
107
+ #2. 'Learning Objectives':
108
+ -'Know & Understand' (Information and concepts students will be acquiring: 1-3 points)
109
+ -'Do' (Skills students will be practicing / developing: 1-3 points).
110
+ #3. 'Instructions' (Brief overview):
111
+ -'Lesson' (Expands on Know, Understand, Do, providing a bulleted list students can refer to in the future to study)
112
+ -'Application' (Sequence of activities to apply/practice the learning)
113
+ -'Deliverables' (Submissions required + due date if indicated)
114
+ -'Extension' (Opportunities to learn more, go deeper, or fast forward. Create them if they are not present).
115
+ Derive your response from the class materials and format your response in a clear, structured manner using markdown headings and bullet points.
116
  """
117
  response = model.generate_content([prompt] + content)
118