This commit is contained in:
mytang0 2026-04-23 09:38:16 +00:00 committed by GitHub
commit 63bfc8e26f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,7 @@ printf "Downloading ggml model %s from '%s' ...\n" "$model" "$src"
cd "$models_path" || exit
if [ -f "ggml-$model.bin" ]; then
if [ -f "ggml-$model.bin" ] && [ -s "ggml-$model.bin" ]; then
printf "Model %s already exists. Skipping download.\n" "$model"
exit 0
fi
@ -129,6 +129,7 @@ else
fi
if [ $? -ne 0 ]; then
rm -f ggml-"$model".bin
printf "Failed to download ggml model %s \n" "$model"
printf "Please try again later or download the original Whisper model files and convert them yourself.\n"
exit 1