Skip to content

Commit

Permalink
bugfix: import in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Nov 3, 2024
1 parent a24dd0d commit aadaec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_whisper_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from unittest import TestCase, skipIf
from unittest.mock import MagicMock, patch

import numpy as np

from speech_recognition import AudioData, Recognizer


Expand All @@ -16,6 +14,8 @@ class RecognizeWhisperTestCase(TestCase):
def test_default_parameters(
self, load_model, is_available, sf_read, BytesIO
):
import numpy as np

whisper_model = load_model.return_value
transcript = whisper_model.transcribe.return_value
audio_array = MagicMock()
Expand Down

0 comments on commit aadaec7

Please sign in to comment.