mirror of
https://github.com/shirayu/whispering.git
synced 2025-02-02 03:52:19 +00:00
Fix for openai/whisper@62fe7f1
This commit is contained in:
parent
73bd558522
commit
5abd0db07a
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ class WhisperStreamingTranscriber:
|
|||
t,
|
||||
prompt,
|
||||
beam_size: Optional[int],
|
||||
patience: float,
|
||||
patience: Optional[float],
|
||||
best_of: Optional[int],
|
||||
) -> DecodingOptions:
|
||||
return DecodingOptions(
|
||||
|
@ -93,7 +93,7 @@ class WhisperStreamingTranscriber:
|
|||
t=t,
|
||||
prompt=ctx.buffer_tokens,
|
||||
beam_size=self.config.beam_size,
|
||||
patience=0.0,
|
||||
patience=None,
|
||||
best_of=None,
|
||||
)
|
||||
results: List[DecodingResult] = self.model.decode(segment, _decode_options1) # type: ignore
|
||||
|
|
Loading…
Reference in a new issue