Spaces:
Running
Running
models : update`./models/download-ggml-model.cmd` to allow for tdrz download (#3381)
Browse files* 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]>
models/download-ggml-model.cmd
CHANGED
|
@@ -30,7 +30,7 @@ tiny.en tiny.en-q5_1 tiny.en-q8_0 ^
|
|
| 30 |
base base-q5_1 base-q8_0 ^
|
| 31 |
base.en base.en-q5_1 base.en-q8_0 ^
|
| 32 |
small small-q5_1 small-q8_0 ^
|
| 33 |
-
small.en small.en-q5_1 small.en-q8_0 ^
|
| 34 |
medium medium-q5_0 medium-q8_0 ^
|
| 35 |
medium.en medium.en-q5_0 medium.en-q8_0 ^
|
| 36 |
large-v1 ^
|
|
@@ -74,8 +74,13 @@ if exist "%models_path%\\ggml-%model%.bin" (
|
|
| 74 |
echo Model %model% already exists. Skipping download.
|
| 75 |
goto :eof
|
| 76 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
-
|
| 79 |
|
| 80 |
if %ERRORLEVEL% neq 0 (
|
| 81 |
echo Failed to download ggml model %model%
|
|
|
|
| 30 |
base base-q5_1 base-q8_0 ^
|
| 31 |
base.en base.en-q5_1 base.en-q8_0 ^
|
| 32 |
small small-q5_1 small-q8_0 ^
|
| 33 |
+
small.en small.en-q5_1 small.en-q8_0 small.en-tdrz ^
|
| 34 |
medium medium-q5_0 medium-q8_0 ^
|
| 35 |
medium.en medium.en-q5_0 medium.en-q8_0 ^
|
| 36 |
large-v1 ^
|
|
|
|
| 74 |
echo Model %model% already exists. Skipping download.
|
| 75 |
goto :eof
|
| 76 |
)
|
| 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\""
|
| 82 |
|
| 83 |
+
)
|
| 84 |
|
| 85 |
if %ERRORLEVEL% neq 0 (
|
| 86 |
echo Failed to download ggml model %model%
|