Skip to content

Commit

Permalink
wav2vec2 backend + padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
boocmp committed Aug 19, 2024
1 parent 343cae5 commit 88c27d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runners/audio_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def __init__(self):

def transcribe(self, audios):
input_values = self.processor(
audios, return_tensors="pt", sampling_rate=16000
audios, return_tensors="pt", sampling_rate=16000, padding=True
).input_values.cuda()

with torch.no_grad():
Expand Down

0 comments on commit 88c27d7

Please sign in to comment.