fix flake

This commit is contained in:
lyuxiang.lx
2024-09-18 17:42:54 +08:00
parent ff8e63567a
commit f6b5c42823
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ def single_job(utt):
else:
feat = whisper.log_mel_spectrogram(audio, n_mels=128)
speech_token = ort_session.run(None, {ort_session.get_inputs()[0].name: feat.detach().cpu().numpy(),
ort_session.get_inputs()[1].name: np.array([feat.shape[2]], dtype=np.int32)})[0].flatten().tolist()
ort_session.get_inputs()[1].name: np.array([feat.shape[2]], dtype=np.int32)})[0].flatten().tolist()
return utt, speech_token