]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
models : add support for wget2 for fedora (#2387)
authorBrad Murray <redacted>
Wed, 28 Aug 2024 08:46:01 +0000 (04:46 -0400)
committerGitHub <redacted>
Wed, 28 Aug 2024 08:46:01 +0000 (11:46 +0300)
models/download-ggml-model.sh

index 1f1075b69b9d3fd02ad459675176768e0e9cc96c..ca2cefe74068497b5b2434066f939af410840aee 100755 (executable)
@@ -101,7 +101,9 @@ if [ -f "ggml-$model.bin" ]; then
     exit 0
 fi
 
-if [ -x "$(command -v wget)" ]; then
+if [ -x "$(command -v wget2)" ]; then
+    wget2 --no-config --progress bar -O ggml-"$model".bin $src/$pfx-"$model".bin
+elif [ -x "$(command -v wget)" ]; then
     wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin
 elif [ -x "$(command -v curl)" ]; then
     curl -L --output ggml-"$model".bin $src/$pfx-"$model".bin