Skip to content

Commit

Permalink
Ensurring that the piper backend is stop after the run
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino committed Oct 13, 2023
1 parent e013a1f commit 54764c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ For a list of compatible model, check out: https://localai.io/model-compatibilit
AssetsDestination: ctx.String("backend-assets-path"),
}

loader := model.NewModelLoader(ctx.String("models-path"))
filePath, _, err := backend.ModelTTS(backendOption, text, modelOption, loader, opts)
defer opts.Loader.StopAllGRPC()

filePath, _, err := backend.ModelTTS(backendOption, text, modelOption, opts.Loader, opts)
if err != nil {
return err
}
Expand Down

0 comments on commit 54764c0

Please sign in to comment.