Skip to content

Commit

Permalink
go : NewContext now returns a clean context (ggerganov#537)
Browse files Browse the repository at this point in the history
Co-authored-by: Ming <ming@localhost>
  • Loading branch information
polarmoon and Ming authored Mar 5, 2023
1 parent 72af0f5 commit 5e94129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindings/go/pkg/whisper/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func (model *model) NewContext() (Context, error) {
params.SetPrintRealtime(false)
params.SetPrintTimestamps(false)
params.SetThreads(runtime.NumCPU())
params.SetNoContext(true)

// Return new context
return newContext(model, params)
Expand Down

0 comments on commit 5e94129

Please sign in to comment.