mirror of
https://github.com/shirayu/whispering.git
synced 2025-04-26 18:44:42 +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,
|
t=t,
|
||||||
prompt=ctx.buffer_tokens,
|
prompt=ctx.buffer_tokens,
|
||||||
beam_size=ctx.beam_size,
|
beam_size=ctx.beam_size,
|
||||||
patience=None,
|
patience=ctx.patience,
|
||||||
best_of=None,
|
best_of=None,
|
||||||
)
|
)
|
||||||
results: List[DecodingResult] = self.model.decode(segment, _decode_options1) # type: ignore
|
results: List[DecodingResult] = self.model.decode(segment, _decode_options1) # type: ignore
|
||||||
|
@ -114,7 +114,7 @@ class WhisperStreamingTranscriber:
|
||||||
t=t,
|
t=t,
|
||||||
prompt=ctx.buffer_tokens,
|
prompt=ctx.buffer_tokens,
|
||||||
beam_size=None,
|
beam_size=None,
|
||||||
patience=ctx.patience,
|
patience=None,
|
||||||
best_of=ctx.best_of,
|
best_of=ctx.best_of,
|
||||||
)
|
)
|
||||||
retries: List[DecodingResult] = self.model.decode(
|
retries: List[DecodingResult] = self.model.decode(
|
||||||
|
|
Loading…
Reference in a new issue