Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,33 +28,55 @@ INPUT: This file is a PDF that first contains the Question Paper and immediately
|
|
| 28 |
TASK:
|
| 29 |
1. Transcribe EXACTLY all the questions FIRST (with their total marks).
|
| 30 |
2. After ALL questions, transcribe the Markscheme exactly, preserving M/A/R notation in brackets.
|
| 31 |
-
3. Always number the questions sequentially (Question 1, Question 2, Question 3, …) **in the order they appear in the PDF**, even if the PDF shows a different number or leaves it blank. Do NOT skip or leave Question: blank. Never start a question other than question 1 (
|
| 32 |
-
4.
|
|
|
|
|
|
|
| 33 |
FORMAT:
|
| 34 |
==== PAPER TOTAL MARKS ====
|
| 35 |
<total marks>
|
|
|
|
| 36 |
==== QUESTIONS BEGIN ====
|
| 37 |
-
Question 1.
|
| 38 |
Total Marks: <number>
|
| 39 |
QP: <question text>
|
| 40 |
--QUESTION-END--
|
| 41 |
-
|
|
|
|
| 42 |
Total Marks: <number>
|
| 43 |
QP: <question text>
|
| 44 |
--QUESTION-END--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
(repeat for all questions in order of appearance)
|
|
|
|
| 46 |
==== QUESTIONS END ====
|
|
|
|
| 47 |
==== MARKSCHEME BEGIN ====
|
| 48 |
-
Answer 1.
|
| 49 |
-
<exact MS for Q1.
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
| 52 |
Answer 2 :
|
| 53 |
<exact MS for Q2 with notations>
|
|
|
|
| 54 |
(repeat for all answers)
|
|
|
|
| 55 |
==== MARKSCHEME END ====
|
| 56 |
-
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
,
|
| 59 |
|
| 60 |
"GRADING_PROMPT": {
|
|
@@ -84,7 +106,7 @@ Produce two sections per question/sub-question, following this structure:
|
|
| 84 |
| Mark ID | Markscheme Expectation | Student's Response | Awarded |
|
| 85 |
|---------|------------------------|--------------------|---------|
|
| 86 |
| M1_1 | Recognise GP | "r=0.9" | M1 |
|
| 87 |
-
|
| 88 |
---
|
| 89 |
### Examiner's Report
|
| 90 |
At the very end, provide a summary table:
|
|
|
|
| 28 |
TASK:
|
| 29 |
1. Transcribe EXACTLY all the questions FIRST (with their total marks).
|
| 30 |
2. After ALL questions, transcribe the Markscheme exactly, preserving M/A/R notation in brackets.
|
| 31 |
+
3. Always number the questions sequentially (Question 1, Question 2, Question 3, …) **in the order they appear in the PDF**, even if the PDF shows a different number or leaves it blank. Do NOT skip or leave Question: blank. Never start a question other than question 1 (even if it is labelled in pdf as 8 name it 1).
|
| 32 |
+
4. If a question or sub-question is labelled with a letter (e.g., “Q1.a”, “Q2(b)”, “1 (c)(i)”), transcribe it as “Question 1.a”, “Question 2.b”, “Question 1.c.i” etc., exactly preserving the hierarchy of sub-question identifiers.
|
| 33 |
+
5. After the markscheme, DETECT and FLAG all questions in the markscheme where a graph/diagram is expected. For each, output the question number and the page number in the format below.
|
| 34 |
+
|
| 35 |
FORMAT:
|
| 36 |
==== PAPER TOTAL MARKS ====
|
| 37 |
<total marks>
|
| 38 |
+
|
| 39 |
==== QUESTIONS BEGIN ====
|
| 40 |
+
Question 1.a
|
| 41 |
Total Marks: <number>
|
| 42 |
QP: <question text>
|
| 43 |
--QUESTION-END--
|
| 44 |
+
|
| 45 |
+
Question 1.b
|
| 46 |
Total Marks: <number>
|
| 47 |
QP: <question text>
|
| 48 |
--QUESTION-END--
|
| 49 |
+
|
| 50 |
+
Question 2
|
| 51 |
+
Total Marks: <number>
|
| 52 |
+
QP: <question text>
|
| 53 |
+
--QUESTION-END--
|
| 54 |
+
|
| 55 |
(repeat for all questions in order of appearance)
|
| 56 |
+
|
| 57 |
==== QUESTIONS END ====
|
| 58 |
+
|
| 59 |
==== MARKSCHEME BEGIN ====
|
| 60 |
+
Answer 1.a:
|
| 61 |
+
<exact MS for Q1.a with notations M1, A1, R1 etc>
|
| 62 |
+
|
| 63 |
+
Answer 1.b:
|
| 64 |
+
<exact MS for Q1.b with notations>
|
| 65 |
+
|
| 66 |
Answer 2 :
|
| 67 |
<exact MS for Q2 with notations>
|
| 68 |
+
|
| 69 |
(repeat for all answers)
|
| 70 |
+
|
| 71 |
==== MARKSCHEME END ====
|
| 72 |
+
|
| 73 |
+
==== GRAPH EXPECTED QUESTIONS ====
|
| 74 |
+
Graph expected in:
|
| 75 |
+
- Question <number> → Page <number>
|
| 76 |
+
(one per line)
|
| 77 |
+
==== END GRAPH EXPECTED ====
|
| 78 |
+
"""
|
| 79 |
+
}
|
| 80 |
,
|
| 81 |
|
| 82 |
"GRADING_PROMPT": {
|
|
|
|
| 106 |
| Mark ID | Markscheme Expectation | Student's Response | Awarded |
|
| 107 |
|---------|------------------------|--------------------|---------|
|
| 108 |
| M1_1 | Recognise GP | "r=0.9" | M1 |
|
| 109 |
+
**Total: X/Y**
|
| 110 |
---
|
| 111 |
### Examiner's Report
|
| 112 |
At the very end, provide a summary table:
|