Skip to content

Commit a8f45ab

Browse files
authored
go : reset context.n in Process() (ggml-org#3503)
1 parent a88b93f commit a8f45ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindings/go/pkg/whisper/context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ func (context *context) Process(
237237
return err
238238
}
239239

240+
// Reset n so that more Segments can be available within NextSegment call
241+
context.n = 0
242+
240243
// Return success
241244
return nil
242245
}

0 commit comments

Comments
 (0)