Browse Source

update error

jhj0517 1 year ago
parent
commit
63a0a451f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      whisper/transcribe.py

+ 1 - 1
whisper/transcribe.py

@@ -229,7 +229,7 @@ def transcribe(
         last_speech_timestamp = 0.0
         while seek < content_frames:
             if progress_callback is not None:
-                progress_value = seek / num_frames
+                progress_value = seek / content_frames
                 progress_callback(progress_value)
 
             time_offset = float(seek * HOP_LENGTH / SAMPLE_RATE)