~fitzsim/whisper.cpp

5e94129cb2df42b0c8a05b415fab62c09bec517f — polarmoon 11 months ago 72af0f5
go : NewContext now returns a clean context (#537)

Co-authored-by: Ming <ming@localhost>
1 files changed, 1 insertions(+), 0 deletions(-)

M bindings/go/pkg/whisper/model.go
M bindings/go/pkg/whisper/model.go => bindings/go/pkg/whisper/model.go +1 -0
@@ 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)