Skip to content

Commit 6af1f96

Browse files
authored
go : fix context.Process call in examples (ggml-org#1067)
1 parent 4a11426 commit 6af1f96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bindings/go/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func main() {
3131
if err != nil {
3232
panic(err)
3333
}
34-
if err := context.Process(samples, nil); err != nil {
34+
if err := context.Process(samples, nil, nil); err != nil {
3535
return err
3636
}
3737

@@ -71,7 +71,7 @@ The examples are placed in the `build` directory. Once built, you can download a
7171
And you can then test a model against samples with the following command:
7272

7373
```bash
74-
./build/go-whisper -model models/ggml-tiny.en.bin samples/jfk.wav
74+
./build/go-whisper -model models/ggml-tiny.en.bin samples/jfk.wav
7575
```
7676

7777
## Using the bindings

bindings/go/examples/go-whisper/process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func Process(model whisper.Model, path string, flags *Flags) error {
6767
// Process the data
6868
fmt.Fprintf(flags.Output(), " ...processing %q\n", path)
6969
context.ResetTimings()
70-
if err := context.Process(data, cb); err != nil {
70+
if err := context.Process(data, cb, nil); err != nil {
7171
return err
7272
}
7373

0 commit comments

Comments
 (0)