Skip to content

Commit

Permalink
fix: main transcriber should not be async
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Jul 3, 2024
1 parent 4949716 commit 3bb72e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion capgen/transcriber/transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down
2 changes: 1 addition & 1 deletion server/features/transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 3bb72e6

Please sign in to comment.