]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
go : improve progress reporting and callback handling (#1024)
authorBo-Yi Wu <redacted>
Sun, 25 Jun 2023 11:07:55 +0000 (19:07 +0800)
committerGitHub <redacted>
Sun, 25 Jun 2023 11:07:55 +0000 (14:07 +0300)
commit7dfc11843c8f9b1951360895a934c7188c15919a
tree3f42946febbd04ccacad6b1bb9cb3871919a9555
parent6a7f3b8db2acae0c832251288cdd98cac18dceb0
go : improve progress reporting and callback handling (#1024)

- Rename `cb` to `callNewSegment` in the `Process` function
- Add `callProgress` as a new parameter to the `Process` function
- Introduce `ProgressCallback` type for reporting progress during processing
- Update `Whisper_full` function to include `progressCallback` parameter
- Add `registerProgressCallback` function and `cbProgress` map for handling progress callbacks

Signed-off-by: appleboy <redacted>
bindings/go/Makefile
bindings/go/pkg/whisper/context.go
bindings/go/pkg/whisper/interface.go
bindings/go/whisper.go
bindings/go/whisper_test.go