Merge pull request #229756 from hughobrien/openai-whisper-cpp-v1.4.0

openai-whisper-cpp: 1.2.1 -> 1.4.0. add hughobrien as maintainer.
This commit is contained in:
Martin Weinelt 2023-05-08 02:09:39 +02:00 committed by GitHub
commit 852f4bea7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -11,13 +11,13 @@
stdenv.mkDerivation rec {
pname = "whisper-cpp";
version = "1.2.1";
version = "1.4.0";
src = fetchFromGitHub {
owner = "ggerganov";
repo = "whisper.cpp";
rev = "refs/tags/v${version}" ;
hash = "sha256-gcw+tcrwCt2CynNXQZxb+WxN/0chIQIJnwUAw9JGkYA=";
hash = "sha256-176MpooVQrq1dXC62h8Yyyhw6IjCA50tp1J4DQPSePQ=";
};
# The upstream download script tries to download the models to the
@ -56,6 +56,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/ggerganov/whisper.cpp";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ dit7ya ];
maintainers = with maintainers; [ dit7ya hughobrien ];
};
}

View File

@ -1,15 +1,15 @@
diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh
index 7075080..5e9c905 100755
index 749b409..831f4c0 100755
--- a/models/download-ggml-model.sh
+++ b/models/download-ggml-model.sh
@@ -9,18 +9,6 @@
src="https://huggingface.co/datasets/ggerganov/whisper.cpp"
src="https://huggingface.co/ggerganov/whisper.cpp"
pfx="resolve/main/ggml"
-# get the path of this script
-function get_script_path() {
- if [ -x "$(command -v realpath)" ]; then
- echo "$(dirname $(realpath $0))"
- echo "$(dirname "$(realpath "$0")")"
- else
- local ret="$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)"
- echo "$ret"