mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2023-11-04 02:52:44 +03:00
stream : "-kc" now enables context keeping from previous segment (#90)
By default, the context keeping is disabled
This commit is contained in:
@@ -2590,9 +2590,9 @@ int whisper_full(
|
||||
prompt_past.clear();
|
||||
}
|
||||
|
||||
// Prepend the prompt tokens to the prompt_past
|
||||
// prepend the prompt tokens to the prompt_past
|
||||
if (params.prompt_tokens && params.prompt_n_tokens > 0) {
|
||||
// Parse tokens from the pointer (it points to an std::vector)
|
||||
// parse tokens from the pointer
|
||||
for (int i = 0; i < params.prompt_n_tokens; i++) {
|
||||
prompt_past.push_back(params.prompt_tokens[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user