Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Purfview authored and MahmoudAshraf97 committed Dec 12, 2024
1 parent 8068472 commit ce6e298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion faster_whisper/vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ def __call__(
encoder_outputs = []
for start in range(0, num_segments, batch_process_size):
end = min(start + batch_process_size, num_segments)
encoder_output = self.encoder_session.run(None, {"input": batched_audio[start:end]})[0]
encoder_output = self.encoder_session.run(
None, {"input": batched_audio[start:end]}
)[0]
encoder_outputs.append(encoder_output)

encoder_output = np.concatenate(encoder_outputs, axis=0)
Expand Down

0 comments on commit ce6e298

Please sign in to comment.