Spaces:
Sleeping
Sleeping
transcript_file_updated
Browse files158 unmodified lines159160161162162163164165158 unmodified lines
# Perform alignment using the loaded model # Removed 'device' from here as the model itself is already on the correct device transcription_result = whisperx.align(transcription_result["segments"], align_model_local, audio, return_char_alignments=False) transcription_result = whisperx.align(transcription_result["segments"], align_model_local, audio, device, return_char_alignments=False) # Removed the duplicate whisperx.align call and 'del align_model_local' # as it can cause issues if an error occurs later.app.py+1-1