kittsil 5979f03701
Add option to carry initial_prompt with the sliding window (#2343)
* Add option to carry initial_prompt with the sliding window

Add an option `carry_initial_prompt = False` to `whisper.transcribe()`.
When set to `True`, `initial_prompt` is prepended to each internal `decode()` call's `prompt`.
If there is not enough context space at the start of the prompt, the prompt is left-sliced to make space.

* Prevent redundant initial_prompt_tokens

* Revert unnecessary .gitignore change

---------

Co-authored-by: Kittsil <kittsil@gmail.com>
Co-authored-by: Jong Wook Kim <jongwook@openai.com>
2024-10-26 07:17:31 -07:00
..
2023-11-06 10:10:30 -08:00
2024-09-30 10:59:51 -07:00
2023-11-06 10:10:30 -08:00
2023-11-06 10:10:30 -08:00
2024-09-30 10:27:14 -07:00
2024-09-30 10:27:14 -07:00
2023-11-06 10:10:30 -08:00
2024-09-30 11:20:53 -07:00