mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-10 18:51:08 +00:00
Fix patience setting
This commit is contained in:
parent
bcbf1f7c8b
commit
b0c27c7ca9
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ class WhisperStreamingTranscriber:
|
|||
t=t,
|
||||
prompt=ctx.buffer_tokens,
|
||||
beam_size=ctx.beam_size,
|
||||
patience=None,
|
||||
patience=ctx.patience,
|
||||
best_of=None,
|
||||
)
|
||||
results: List[DecodingResult] = self.model.decode(segment, _decode_options1) # type: ignore
|
||||
|
@ -114,7 +114,7 @@ class WhisperStreamingTranscriber:
|
|||
t=t,
|
||||
prompt=ctx.buffer_tokens,
|
||||
beam_size=None,
|
||||
patience=ctx.patience,
|
||||
patience=None,
|
||||
best_of=ctx.best_of,
|
||||
)
|
||||
retries: List[DecodingResult] = self.model.decode(
|
||||
|
|
Loading…
Reference in a new issue