Create models.py
Browse files
models.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import List
|
2 |
+
from pydantic import BaseModel
|
3 |
+
|
4 |
+
class ExtractionResult(BaseModel):
|
5 |
+
answers: List[str]
|
6 |
+
|
7 |
+
class EvaluationResult(BaseModel):
|
8 |
+
total_marks: int
|
9 |
+
grade: str
|
10 |
+
percentage: float
|