fix: adapt whisper to bindings updates

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler 2023-06-29 10:39:29 +02:00
parent 0780be022c
commit 1bbd3f7394

View file

@ -73,7 +73,7 @@ func Transcript(model whisper.Model, audiopath, language string, threads uint) (
context.SetLanguage("auto") context.SetLanguage("auto")
} }
if err := context.Process(data, nil); err != nil { if err := context.Process(data, nil, nil); err != nil {
return "", err return "", err
} }