From 8482131e10fc7cc9c4753c7c3c8b3694decefe48 Mon Sep 17 00:00:00 2001 From: mrq Date: Fri, 17 Feb 2023 06:25:00 +0000 Subject: [PATCH] oops x2 --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 0f1fbb3..3c7dc6f 100755 --- a/src/utils.py +++ b/src/utils.py @@ -471,6 +471,7 @@ def prepare_dataset( files, outdir ): idx = 0 results = {} + transcription = [] for file in files: print(f"Transcribing file: {file}") @@ -483,7 +484,6 @@ def prepare_dataset( files, outdir ): waveform, sampling_rate = torchaudio.load(file) num_channels, num_frames = waveform.shape - transcription = [] for segment in result['segments']: start = int(segment['start'] * sampling_rate) end = int(segment['end'] * sampling_rate)