Sina Media Lab
commited on
Commit
·
f63a29c
1
Parent(s):
cab1b57
Updates
Browse files
app.py
CHANGED
@@ -62,9 +62,9 @@ def generate_pdf_report():
|
|
62 |
pdf.multi_cell(0, 10, f"Q: {question}")
|
63 |
for option in options:
|
64 |
if option == correct:
|
65 |
-
pdf.multi_cell(0, 10, f"
|
66 |
elif option == selected:
|
67 |
-
pdf.multi_cell(0, 10, f"
|
68 |
else:
|
69 |
pdf.multi_cell(0, 10, f" {option}")
|
70 |
pdf.multi_cell(0, 10, f"Explanation: {explanation}")
|
|
|
62 |
pdf.multi_cell(0, 10, f"Q: {question}")
|
63 |
for option in options:
|
64 |
if option == correct:
|
65 |
+
pdf.multi_cell(0, 10, f"[Correct] {option}")
|
66 |
elif option == selected:
|
67 |
+
pdf.multi_cell(0, 10, f"[Incorrect] {option}")
|
68 |
else:
|
69 |
pdf.multi_cell(0, 10, f" {option}")
|
70 |
pdf.multi_cell(0, 10, f"Explanation: {explanation}")
|