ggerganov commited on
Commit
cdb726d
·
unverified ·
1 Parent(s): a100c9a

go : fix "cb" -> "callNewSegment"

Browse files
Files changed (1) hide show
  1. bindings/go/pkg/whisper/context.go +1 -1
bindings/go/pkg/whisper/context.go CHANGED
@@ -161,7 +161,7 @@ func (context *context) Process(
161
  return ErrInternalAppError
162
  }
163
  // If the callback is defined then we force on single_segment mode
164
- if cb != nil {
165
  context.params.SetSingleSegment(true)
166
  }
167
 
 
161
  return ErrInternalAppError
162
  }
163
  // If the callback is defined then we force on single_segment mode
164
+ if callNewSegment != nil {
165
  context.params.SetSingleSegment(true)
166
  }
167