Skip to content

Commit

Permalink
#34 put ggml-metal.metal in inst folder and make sure environment var…
Browse files Browse the repository at this point in the history
…iable GGML_METAL_PATH_RESOURCES is set
  • Loading branch information
jwijffels committed Feb 4, 2024
1 parent 8a2b1f4 commit 908454f
Show file tree
Hide file tree
Showing 2 changed files with 5,137 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/whisper.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ whisper <- function(x, overwrite = FALSE, model_dir = getwd(), ...){
}else{
out <- list(file = x)
}
Sys.setenv("GGML_METAL_PATH_RESOURCES" = system.file(package = "audio.whisper", "metal"))
out$model <- whisper_load_model(out$file, ...)
class(out) <- "whisper"
out
Expand Down
Loading

0 comments on commit 908454f

Please sign in to comment.