]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Fix paths echoed after the download
authorKartik Saranathan <redacted>
Thu, 8 Dec 2022 04:18:30 +0000 (23:18 -0500)
committerGeorgi Gerganov <redacted>
Thu, 8 Dec 2022 07:23:52 +0000 (09:23 +0200)
Was using models path instead of root path

models/download-ggml-model.cmd

index a20ac80ae67608b199c925f99e7941881b428e3a..4d91187dd172aa86f82ee55dbc3992a23317a0aa 100644 (file)
@@ -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