From: Georgi Gerganov Date: Sun, 5 Mar 2023 18:53:43 +0000 (+0200) Subject: whisper : set no_context == true by default (#537) X-Git-Tag: upstream/1.7.4~1554 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=478289a4b393904b91df06e0b1ec7552ba25a338;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp whisper : set no_context == true by default (#537) --- diff --git a/examples/stream/stream.cpp b/examples/stream/stream.cpp index 979f8c68..258457fa 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 3a21581c..b4a04073 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,