Spaces:
Sleeping
Sleeping
transcript_file_updated
Browse files
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.
|