Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,10 +27,10 @@ def generate_pdf(name, roll_no, nic_number, father_name, form_number, scores):
|
|
| 27 |
# Test Scores
|
| 28 |
pdf.set_font("Arial", style='B', size=14)
|
| 29 |
for subject, score in scores.items():
|
| 30 |
-
pdf.cell(200, 10, f"{subject} Section Score: {score} out of
|
| 31 |
|
| 32 |
total_score = sum(scores.values())
|
| 33 |
-
pdf.cell(200, 10, f"Total Score: {total_score} out of
|
| 34 |
|
| 35 |
# Save PDF
|
| 36 |
pdf_path = "test_result.pdf"
|
|
|
|
| 27 |
# Test Scores
|
| 28 |
pdf.set_font("Arial", style='B', size=14)
|
| 29 |
for subject, score in scores.items():
|
| 30 |
+
pdf.cell(200, 10, f"{subject} Section Score: {score} out of 100", ln=True)
|
| 31 |
|
| 32 |
total_score = sum(scores.values())
|
| 33 |
+
pdf.cell(200, 10, f"Total Score: {total_score} out of 400", ln=True)
|
| 34 |
|
| 35 |
# Save PDF
|
| 36 |
pdf_path = "test_result.pdf"
|