From 478289a4b393904b91df06e0b1ec7552ba25a338 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 5 Mar 2023 20:53:43 +0200 Subject: [PATCH] whisper : set no_context == true by default (#537) --- examples/stream/stream.cpp | 1 - whisper.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/stream/stream.cpp b/examples/stream/stream.cpp index 979f8c6..258457f 100644 --- a/examples/stream/stream.cpp +++ b/examples/stream/stream.cpp @@ -288,7 +288,6 @@ int main(int argc, char ** argv) { wparams.print_realtime = false; wparams.print_timestamps = !params.no_timestamps; wparams.translate = params.translate; - wparams.no_context = true; wparams.single_segment = !use_vad; wparams.max_tokens = params.max_tokens; wparams.language = params.language.c_str(); diff --git a/whisper.cpp b/whisper.cpp index 3a21581..b4a0407 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -2913,7 +2913,7 @@ struct whisper_full_params whisper_full_default_params(enum whisper_sampling_str /*.duration_ms =*/ 0, /*.translate =*/ false, - /*.no_context =*/ false, + /*.no_context =*/ true, /*.single_segment =*/ false, /*.print_special =*/ false, /*.print_progress =*/ true,