Spaces:
Running
Running
Brad Murray
commited on
models : add support for wget2 for fedora (#2387)
Browse files
models/download-ggml-model.sh
CHANGED
|
@@ -101,7 +101,9 @@ if [ -f "ggml-$model.bin" ]; then
|
|
| 101 |
exit 0
|
| 102 |
fi
|
| 103 |
|
| 104 |
-
if [ -x "$(command -v
|
|
|
|
|
|
|
| 105 |
wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin
|
| 106 |
elif [ -x "$(command -v curl)" ]; then
|
| 107 |
curl -L --output ggml-"$model".bin $src/$pfx-"$model".bin
|
|
|
|
| 101 |
exit 0
|
| 102 |
fi
|
| 103 |
|
| 104 |
+
if [ -x "$(command -v wget2)" ]; then
|
| 105 |
+
wget2 --no-config --progress bar -O ggml-"$model".bin $src/$pfx-"$model".bin
|
| 106 |
+
elif [ -x "$(command -v wget)" ]; then
|
| 107 |
wget --no-config --quiet --show-progress -O ggml-"$model".bin $src/$pfx-"$model".bin
|
| 108 |
elif [ -x "$(command -v curl)" ]; then
|
| 109 |
curl -L --output ggml-"$model".bin $src/$pfx-"$model".bin
|