From: Kartik Saranathan Date: Thu, 8 Dec 2022 04:18:30 +0000 (-0500) Subject: Fix paths echoed after the download X-Git-Tag: upstream/1.7.4~1747 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d91c001120df4ebdd8c23cbc21c61c1c162d11f6;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Fix paths echoed after the download Was using models path instead of root path --- diff --git a/models/download-ggml-model.cmd b/models/download-ggml-model.cmd index a20ac80a..4d91187d 100644 --- a/models/download-ggml-model.cmd +++ b/models/download-ggml-model.cmd @@ -2,6 +2,7 @@ pushd %~dp0 set models_path=%CD% +for %%d in (%~dp0..) do set root_path=%%~fd popd set argc=0 @@ -47,9 +48,9 @@ if %ERRORLEVEL% neq 0 ( goto :eof ) -echo Done! Model %model% saved in %models_path%\models\ggml-%model%.bin +echo Done! Model %model% saved in %root_path%\models\ggml-%model%.bin echo You can now use it like this: -echo main.exe -m %models_path%\models\ggml-%model%.bin -f %models_path%\samples\jfk.wav +echo main.exe -m %root_path%\models\ggml-%model%.bin -f %root_path%\samples\jfk.wav goto :eof