Now grading is partitioned into smaller chunks so that whisper doesnt struggle

This commit is contained in:
Carlos-Mesquita
2024-11-27 08:07:54 +00:00
parent 47cdfe1478
commit 6681b2d0e9
9 changed files with 228 additions and 59 deletions

View File

@@ -27,8 +27,3 @@ class IEvaluationService(ABC):
background_tasks: BackgroundTasks
):
pass
@abstractmethod
async def get_evaluations(self, session_id: str, status: str) -> List[Dict]:
pass

View File

@@ -4,5 +4,5 @@ from abc import ABC, abstractmethod
class ISpeechToTextService(ABC):
@abstractmethod
async def speech_to_text(self, file_path):
async def speech_to_text(self, file: bytes):
pass