fallback on whisper alignment failures, update readme

This commit is contained in:
Max Bain
2023-01-05 11:15:19 +00:00
parent 93d661f2e4
commit 5a668a7d80
4 changed files with 68 additions and 42 deletions

View File

@ -64,7 +64,8 @@ def backtrack(trellis, emission, tokens, blank_id=0):
if j == 0:
break
else:
raise ValueError("Failed to align")
# failed
return None
return path[::-1]
# Merge the labels