Skip to content

Commit

Permalink
fix: execstack
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Jan 5, 2024
1 parent 6a19de2 commit daeb37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buzz/transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from dataclasses_json import dataclass_json, config, Exclude

from buzz.model_loader import whisper_cpp
from . import transformers_whisper
from . import transformers_whisper, whisper_audio
from .conn import pipe_stderr
from .locale import _
from .model_loader import TranscriptionModel, ModelType
Expand Down Expand Up @@ -814,7 +814,7 @@ def __init__(self, model: str) -> None:

def transcribe(self, audio: Union[np.ndarray, str], params: Any):
if isinstance(audio, str):
audio = whisper.audio.load_audio(audio)
audio = whisper_audio.load_audio(audio)

logging.debug("Loaded audio with length = %s", len(audio))

Expand Down

0 comments on commit daeb37d

Please sign in to comment.