Spaces:
Running
Running
polarmoon
Ming
commited on
go : NewContext now returns a clean context (#537)
Browse files
bindings/go/pkg/whisper/model.go
CHANGED
|
@@ -94,6 +94,7 @@ func (model *model) NewContext() (Context, error) {
|
|
| 94 |
params.SetPrintRealtime(false)
|
| 95 |
params.SetPrintTimestamps(false)
|
| 96 |
params.SetThreads(runtime.NumCPU())
|
|
|
|
| 97 |
|
| 98 |
// Return new context
|
| 99 |
return newContext(model, params)
|
|
|
|
| 94 |
params.SetPrintRealtime(false)
|
| 95 |
params.SetPrintTimestamps(false)
|
| 96 |
params.SetThreads(runtime.NumCPU())
|
| 97 |
+
params.SetNoContext(true)
|
| 98 |
|
| 99 |
// Return new context
|
| 100 |
return newContext(model, params)
|