Spaces:
Sleeping
Sleeping
Commit
·
20a6be7
1
Parent(s):
99c7e89
Finetune prompting
Browse files
app.py
CHANGED
@@ -249,8 +249,8 @@ async def create_classroom(payload: ClassroomRequest = Body(...)):
|
|
249 |
- Hours per session: {prefs.hoursPerSession}
|
250 |
- Preferred learning style: {prefs.learningStyle}
|
251 |
- Role perspective: {payload.role}
|
252 |
-
{"- Textbook URL: " + payload.textbookUrl if payload.textbookUrl else ""}
|
253 |
-
{"- Syllabus URL: " + payload.syllabusUrl if payload.syllabusUrl else ""}
|
254 |
|
255 |
Requirements:
|
256 |
|
@@ -262,7 +262,7 @@ async def create_classroom(payload: ClassroomRequest = Body(...)):
|
|
262 |
- `durationHours` (fixed: {prefs.hoursPerSession})
|
263 |
- `topic` (max 15 words)
|
264 |
- `activities` (array of 2-3 bullet strings)
|
265 |
-
- `materials` (array of links/titles; include textbook chapters if URL given)
|
266 |
- `homework` (concise task ≤ 50 words)
|
267 |
|
268 |
3. **Output pure JSON only** using the schema:
|
|
|
249 |
- Hours per session: {prefs.hoursPerSession}
|
250 |
- Preferred learning style: {prefs.learningStyle}
|
251 |
- Role perspective: {payload.role}
|
252 |
+
{"- Textbook URL: " + payload.textbookUrl if payload.textbookUrl else "Not Available"}
|
253 |
+
{"- Syllabus URL: " + payload.syllabusUrl if payload.syllabusUrl else "Not Available"}
|
254 |
|
255 |
Requirements:
|
256 |
|
|
|
262 |
- `durationHours` (fixed: {prefs.hoursPerSession})
|
263 |
- `topic` (max 15 words)
|
264 |
- `activities` (array of 2-3 bullet strings)
|
265 |
+
- `materials` (array of links/titles; include textbook chapters if URL given, else suggesting external textbook/document for referencing)
|
266 |
- `homework` (concise task ≤ 50 words)
|
267 |
|
268 |
3. **Output pure JSON only** using the schema:
|