From be02f9cceba640f28ed6249a2779545092dcc54e Mon Sep 17 00:00:00 2001 From: jhj0517 <97279763+jhj0517@users.noreply.github.com> Date: Thu, 23 Jan 2025 20:52:19 +0900 Subject: [PATCH] Fix elapsed time --- modules/whisper/base_transcription_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/whisper/base_transcription_pipeline.py b/modules/whisper/base_transcription_pipeline.py index 225c7a8..e6a6299 100644 --- a/modules/whisper/base_transcription_pipeline.py +++ b/modules/whisper/base_transcription_pipeline.py @@ -111,7 +111,7 @@ def run(self, """ if not validate_audio(audio): logger.info(f"The audio file {audio} is not able to open or corrupted. Please check the file.") - return [Segment()], -1 + return [Segment()], 0 params = TranscriptionPipelineParams.from_list(list(pipeline_params)) params = self.validate_gradio_values(params)