jhj0517 пре 6 месеци
родитељ
комит
63a0a451f0
1 измењених фајлова са 1 додато и 1 уклоњено
  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)