fix: adapt whisper to bindings updates (#702)

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2023-06-29 11:26:07 +02:00 committed by GitHub
parent 0780be022c
commit bf5acf646e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
} }