Skip to content

Commit

Permalink
Merge pull request #473 from jhj0517/fix/handle-silent-audio
Browse files Browse the repository at this point in the history
Fix elapsed time
  • Loading branch information
jhj0517 authored Jan 23, 2025
2 parents 2b34a16 + be02f9c commit 9dcac4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/whisper/base_transcription_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9dcac4d

Please sign in to comment.