1diff --git a/models/download-ggml-model.sh b/models/download-ggml-model.sh
2index ef9c90da..a7e2a17c 100755
3--- a/models/download-ggml-model.sh
4+++ b/models/download-ggml-model.sh
5@@ -12,15 +12,6 @@ pfx="resolve/main/ggml"
6 BOLD="\033[1m"
7 RESET='\033[0m'
8
9-# get the path of this script
10-get_script_path() {
11- if [ -x "$(command -v realpath)" ]; then
12- dirname "$(realpath "$0")"
13- else
14- _ret="$(cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit ; pwd -P)"
15- echo "$_ret"
16- fi
17-}
18
19 script_path="$(get_script_path)"
20
21@@ -30,7 +21,6 @@ case "$script_path" in
22 *) default_download_path="$script_path" ;; # Otherwise, use script directory
23 esac
24
25-models_path="${2:-$default_download_path}"
26
27 # Whisper models
28 models="tiny
29@@ -80,8 +70,8 @@ list_models() {
30 printf "\n\n"
31 }
32
33-if [ "$#" -lt 1 ] || [ "$#" -gt 2 ]; then
34- printf "Usage: %s <model> [models_path]\n" "$0"
35+if [ "$#" -lt 1 ]; then
36+ printf "Usage: %s <model>\n" "$0"
37 list_models
38 printf "___________________________________________________________\n"
39 printf "${BOLD}.en${RESET} = english-only ${BOLD}-q5_[01]${RESET} = quantized ${BOLD}-tdrz${RESET} = tinydiarize\n"
40@@ -110,7 +100,6 @@ echo "$model" | grep -q '^"tdrz"*$'
41
42 printf "Downloading ggml model %s from '%s' ...\n" "$model" "$src"
43
44-cd "$models_path" || exit
45
46 if [ -f "ggml-$model.bin" ]; then
47 printf "Model %s already exists. Skipping download.\n" "$model"
48@@ -143,7 +132,7 @@ else
49 whisper_cmd="./build/bin/whisper-cli"
50 fi
51
52-printf "Done! Model '%s' saved in '%s/ggml-%s.bin'\n" "$model" "$models_path" "$model"
53+printf "Done! Model '%s' saved in 'ggml-%s.bin'\n" "$model" "$model"
54 printf "You can now use it like this:\n\n"
55-printf " $ %s -m %s/ggml-%s.bin -f samples/jfk.wav\n" "$whisper_cmd" "$models_path" "$model"
56+printf " $ %s -m /ggml-%s.bin -f samples/jfk.wav\n" "$whisper_cmd" "$model"
57 printf "\n"