DineshJ96 commited on
Commit
275f6d2
·
1 Parent(s): d926715

transcript_file_updated

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -159,7 +159,7 @@ def process_audio_for_web(audio_input):
159
 
160
  # Perform alignment using the loaded model
161
  # Removed 'device' from here as the model itself is already on the correct device
162
- transcription_result = whisperx.align(transcription_result["segments"], align_model_local, audio, return_char_alignments=False)
163
 
164
  # Removed the duplicate whisperx.align call and 'del align_model_local'
165
  # as it can cause issues if an error occurs later.
 
159
 
160
  # Perform alignment using the loaded model
161
  # Removed 'device' from here as the model itself is already on the correct device
162
+ transcription_result = whisperx.align(transcription_result["segments"], align_model_local, audio, device, return_char_alignments=False)
163
 
164
  # Removed the duplicate whisperx.align call and 'del align_model_local'
165
  # as it can cause issues if an error occurs later.