diff --git a/capgen/transcriber/transcriber.py b/capgen/transcriber/transcriber.py index b4b7d91..6e0b4cd 100644 --- a/capgen/transcriber/transcriber.py +++ b/capgen/transcriber/transcriber.py @@ -53,7 +53,7 @@ def __init__( except ValueError: self.model = WhisperModel(**model_parameters) - async def transcribe(self, file: str | BinaryIO, caption_format: str) -> str | None: + def transcribe(self, file: str | BinaryIO, caption_format: str) -> str | None: """ Summary ------- diff --git a/server/features/transcriber.py b/server/features/transcriber.py index 87d4bb4..9076f50 100644 --- a/server/features/transcriber.py +++ b/server/features/transcriber.py @@ -43,4 +43,4 @@ async def transcribe(cls, file: str | BinaryIO, transcription_type: Literal['srt ------- transcription (str | None) : the transcribed text in the chosen caption format """ - return await cls.transcriber.transcribe(file, transcription_type) + return cls.transcriber.transcribe(file, transcription_type)