瀏覽代碼

update error

jhj0517 1 年之前
父節點
當前提交
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)