openai-whisper-cpp: 1.5.2 -> 1.5.4
This commit is contained in:
parent
61ad5d8a7b
commit
54e606bda0
2 changed files with 16 additions and 7 deletions
|
@ -13,13 +13,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "whisper-cpp";
|
||||
version = "1.5.2";
|
||||
version = "1.5.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ggerganov";
|
||||
repo = "whisper.cpp";
|
||||
rev = "refs/tags/v${version}" ;
|
||||
hash = "sha256-7pJbROifDajBJUE07Nz8tARB901fWCB+TS4okcnEsvc=";
|
||||
hash = "sha256-9H2Mlua5zx2WNXbz2C5foxIteuBgeCNALdq5bWyhQCk=";
|
||||
};
|
||||
|
||||
# The upstream download script tries to download the models to the
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh
|
||||
index 749b409..831f4c0 100755
|
||||
--- a/models/download-ggml-model.sh
|
||||
+++ b/models/download-ggml-model.sh
|
||||
@@ -9,18 +9,6 @@
|
||||
|
@ -16,11 +14,22 @@ index 749b409..831f4c0 100755
|
|||
- fi
|
||||
-}
|
||||
-
|
||||
-models_path="$(get_script_path)"
|
||||
-models_path="${2:-$(get_script_path)}"
|
||||
-
|
||||
# Whisper models
|
||||
models=(
|
||||
"tiny.en"
|
||||
@@ -56,8 +44,8 @@ function list_models {
|
||||
printf "\n\n"
|
||||
}
|
||||
|
||||
-if [ "$#" -lt 1 ] || [ "$#" -gt 2 ]; then
|
||||
- printf "Usage: $0 <model> [models_path]\n"
|
||||
+if [ "$#" -ne 1 ]; then
|
||||
+ printf "Usage: $0 <model>\n"
|
||||
list_models
|
||||
|
||||
exit 1
|
||||
@@ -82,8 +70,6 @@ fi
|
||||
|
||||
printf "Downloading ggml model $model from '$src' ...\n"
|
||||
|
@ -34,9 +43,9 @@ index 749b409..831f4c0 100755
|
|||
exit 1
|
||||
fi
|
||||
|
||||
-printf "Done! Model '$model' saved in 'models/ggml-$model.bin'\n"
|
||||
-printf "Done! Model '$model' saved in '$models_path/ggml-$model.bin'\n"
|
||||
+printf "Done! Model '$model' saved in 'ggml-$model.bin'\n"
|
||||
printf "You can now use it like this:\n\n"
|
||||
-printf " $ ./main -m models/ggml-$model.bin -f samples/jfk.wav\n"
|
||||
-printf " $ ./main -m $models_path/ggml-$model.bin -f samples/jfk.wav\n"
|
||||
+printf " $ whisper-cpp -m ggml-$model.bin -f samples/jfk.wav\n"
|
||||
printf "\n"
|
||||
|
|
Loading…
Reference in a new issue