mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
whisper: support audio >30s (#2378)
* whisper: support audio >30s * make prompt indexing consistent with reference repo * fix online
This commit is contained in:
@@ -36,7 +36,7 @@ def run_evaluation(model_name, tinygrad_expected_wer, reference_wer):
|
||||
references = []
|
||||
|
||||
for audio, texts in tqdm.tqdm(loader):
|
||||
transcriptions = transcribe_waveform(model, enc, audio.numpy())
|
||||
transcriptions = transcribe_waveform(model, enc, audio.numpy(), truncate=True)
|
||||
hypotheses.extend(transcriptions)
|
||||
references.extend(texts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user