Skip to content

Commit

Permalink
update variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hkwon committed Aug 15, 2024
1 parent 47f38a7 commit ae69b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tests/test_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,6 @@ def test_transformers_wav2vec2(

predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.decode(predicted_ids, output_word_offsets=True)
transcriptions = transcription[0].replace(processor.tokenizer.unk_token, "")
transcription = transcription[0].replace(processor.tokenizer.unk_token, "")

assert transcriptions == expected_transcription[0]
assert transcription == expected_transcription[0]

0 comments on commit ae69b23

Please sign in to comment.