Skip to content

Commit c09b0e0

Browse files
GalFawkesdanbev
andauthored
models : update./models/download-ggml-model.cmd to allow for tdrz download (#3381)
* added patch to cmd to allow for tdrz download * remove @Signs * Update models/download-ggml-model.cmd Add missing closing double quote. --------- Co-authored-by: Daniel Bevenius <[email protected]>
1 parent fc45bb8 commit c09b0e0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

models/download-ggml-model.cmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tiny.en tiny.en-q5_1 tiny.en-q8_0 ^
3030
base base-q5_1 base-q8_0 ^
3131
base.en base.en-q5_1 base.en-q8_0 ^
3232
small small-q5_1 small-q8_0 ^
33-
small.en small.en-q5_1 small.en-q8_0 ^
33+
small.en small.en-q5_1 small.en-q8_0 small.en-tdrz ^
3434
medium medium-q5_0 medium-q8_0 ^
3535
medium.en medium.en-q5_0 medium.en-q8_0 ^
3636
large-v1 ^
@@ -74,8 +74,13 @@ if exist "%models_path%\\ggml-%model%.bin" (
7474
echo Model %model% already exists. Skipping download.
7575
goto :eof
7676
)
77+
echo %model% | findstr tdrz
78+
if %ERRORLEVEL% neq 0 (
79+
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Start-BitsTransfer -Source https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-%model%.bin -Destination \"%models_path%\\ggml-%model%.bin\""
80+
) else (
81+
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Start-BitsTransfer -Source https://huggingface.co/akashmjn/tinydiarize-whisper.cpp/resolve/main/ggml-%model%.bin -Destination \"%models_path%\\ggml-%model%.bin\""
7782

78-
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "Start-BitsTransfer -Source https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-%model%.bin -Destination \"%models_path%\\ggml-%model%.bin\""
83+
)
7984

8085
if %ERRORLEVEL% neq 0 (
8186
echo Failed to download ggml model %model%

0 commit comments

Comments
 (0)