mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
fix: adapt whisper to bindings updates (#702)
Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
parent
0780be022c
commit
bf5acf646e
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user