Spaces:
Sleeping
Sleeping
jeremierostan
commited on
Update app.py
Browse files
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.
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
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 |
|