mvrilo commited on
Commit
0a7c278
·
unverified ·
1 Parent(s): 49bcee6

go : fix context.Process call in examples (#1067)

Browse files
bindings/go/README.md CHANGED
@@ -31,7 +31,7 @@ func main() {
31
  if err != nil {
32
  panic(err)
33
  }
34
- if err := context.Process(samples, nil); err != nil {
35
  return err
36
  }
37
 
@@ -71,7 +71,7 @@ The examples are placed in the `build` directory. Once built, you can download a
71
  And you can then test a model against samples with the following command:
72
 
73
  ```bash
74
- ./build/go-whisper -model models/ggml-tiny.en.bin samples/jfk.wav
75
  ```
76
 
77
  ## Using the bindings
 
31
  if err != nil {
32
  panic(err)
33
  }
34
+ if err := context.Process(samples, nil, nil); err != nil {
35
  return err
36
  }
37
 
 
71
  And you can then test a model against samples with the following command:
72
 
73
  ```bash
74
+ ./build/go-whisper -model models/ggml-tiny.en.bin samples/jfk.wav
75
  ```
76
 
77
  ## Using the bindings
bindings/go/examples/go-whisper/process.go CHANGED
@@ -67,7 +67,7 @@ func Process(model whisper.Model, path string, flags *Flags) error {
67
  // Process the data
68
  fmt.Fprintf(flags.Output(), " ...processing %q\n", path)
69
  context.ResetTimings()
70
- if err := context.Process(data, cb); err != nil {
71
  return err
72
  }
73
 
 
67
  // Process the data
68
  fmt.Fprintf(flags.Output(), " ...processing %q\n", path)
69
  context.ResetTimings()
70
+ if err := context.Process(data, cb, nil); err != nil {
71
  return err
72
  }
73