浏览代码

fix error

jhj0517 1 年之前
父节点
当前提交
9e4ad0cb34
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      whisper/transcribe.py

+ 3 - 0
whisper/transcribe.py

@@ -43,8 +43,11 @@ def transcribe(
     compression_ratio_threshold: Optional[float] = 2.4,
     logprob_threshold: Optional[float] = -1.0,
     no_speech_threshold: Optional[float] = 0.6,
+    condition_on_previous_text: bool = True,
     initial_prompt: Optional[str] = None,
     word_timestamps: bool = False,
+    prepend_punctuations: str = "\"'“¿([{-",
+    append_punctuations: str = "\"'.。,,!!??::”)]}、",
     progress_callback: Optional[Callable[[float], None]] = None,
     **decode_options,
 ):