Skip to content

Commit

Permalink
whisper : set no_context == true by default (ggerganov#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 5, 2023
1 parent 6dd9a90 commit 7eebfb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/stream/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7eebfb1

Please sign in to comment.