mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
fallback on whisper alignment failures, update readme
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user