Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh 2index 749b409..831f4c0 100755 3--- a/models/download-ggml-model.sh 4+++ b/models/download-ggml-model.sh 5@@ -9,18 +9,6 @@ 6 src="https://huggingface.co/ggerganov/whisper.cpp" 7 pfx="resolve/main/ggml" 8 9-# get the path of this script 10-function get_script_path() { 11- if [ -x "$(command -v realpath)" ]; then 12- echo "$(dirname "$(realpath "$0")")" 13- else 14- local ret="$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)" 15- echo "$ret" 16- fi 17-} 18- 19-models_path="$(get_script_path)" 20- 21 # Whisper models 22 models=( "tiny.en" "tiny" "base.en" "base" "small.en" "small" "medium.en" "medium" "large-v1" "large" ) 23 24@@ -54,8 +42,6 @@ fi 25 26 printf "Downloading ggml model $model from '$src' ...\n" 27 28-cd $models_path 29- 30 if [ -f "ggml-$model.bin" ]; then 31 printf "Model $model already exists. Skipping download.\n" 32 exit 0 33@@ -77,7 +63,7 @@ if [ $? -ne 0 ]; then 34 exit 1 35 fi 36 37-printf "Done! Model '$model' saved in 'models/ggml-$model.bin'\n" 38+printf "Done! Model '$model' saved in 'ggml-$model.bin'\n" 39 printf "You can now use it like this:\n\n" 40-printf " $ ./main -m models/ggml-$model.bin -f samples/jfk.wav\n" 41+printf " $ whisper-cpp -m ggml-$model.bin -f samples/jfk.wav\n" 42 printf "\n"