Hammad712 commited on
Commit
ab7cc25
·
verified ·
1 Parent(s): 550e28f

Create models.py

Browse files
Files changed (1) hide show
  1. models.py +10 -0
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