Spaces:
Sleeping
Sleeping
app-148 updated
Browse files
app.py
CHANGED
|
@@ -144,7 +144,7 @@ def process_audio_for_web(audio_input):
|
|
| 144 |
|
| 145 |
# 2. Align
|
| 146 |
print("Aligning transcription with audio...")
|
| 147 |
-
|
| 148 |
transcription_result = whisperx.align(transcription_result["segments"], align_model_local, audio, device, return_char_alignments=False)
|
| 149 |
del align_model_local
|
| 150 |
gc.collect()
|
|
|
|
| 144 |
|
| 145 |
# 2. Align
|
| 146 |
print("Aligning transcription with audio...")
|
| 147 |
+
transcription_result = whisperx.align(transcription_result["segments"], align_model_local, audio, return_char_alignments=False)
|
| 148 |
transcription_result = whisperx.align(transcription_result["segments"], align_model_local, audio, device, return_char_alignments=False)
|
| 149 |
del align_model_local
|
| 150 |
gc.collect()
|