Brushed up the backend, added writing task 1 academic prompt gen and grading ENCOA-274
This commit is contained in:
19
ielts_be/services/abc/exam/writing.py
Normal file
19
ielts_be/services/abc/exam/writing.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Optional
|
||||
|
||||
from fastapi import UploadFile
|
||||
|
||||
|
||||
class IWritingService(ABC):
|
||||
|
||||
@abstractmethod
|
||||
async def get_writing_task_general_question(self, task: int, topic: str, difficulty: str):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def get_writing_task_academic_question(self, task: int, attachment: UploadFile, difficulty: str):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def grade_writing_task(self, task: int, question: str, answer: str, attachment: Optional[str]):
|
||||
pass
|
||||
Reference in New Issue
Block a user