Kartik Saranathan commited on
Commit
e508930
·
1 Parent(s): 5d3218a

Fix paths echoed after the download

Browse files

Was using models path instead of root path

Files changed (1) hide show
  1. models/download-ggml-model.cmd +3 -2
models/download-ggml-model.cmd CHANGED
@@ -2,6 +2,7 @@
2
 
3
  pushd %~dp0
4
  set models_path=%CD%
 
5
  popd
6
 
7
  set argc=0
@@ -47,9 +48,9 @@ if %ERRORLEVEL% neq 0 (
47
  goto :eof
48
  )
49
 
50
- echo Done! Model %model% saved in %models_path%\models\ggml-%model%.bin
51
  echo You can now use it like this:
52
- echo main.exe -m %models_path%\models\ggml-%model%.bin -f %models_path%\samples\jfk.wav
53
 
54
  goto :eof
55
 
 
2
 
3
  pushd %~dp0
4
  set models_path=%CD%
5
+ for %%d in (%~dp0..) do set root_path=%%~fd
6
  popd
7
 
8
  set argc=0
 
48
  goto :eof
49
  )
50
 
51
+ echo Done! Model %model% saved in %root_path%\models\ggml-%model%.bin
52
  echo You can now use it like this:
53
+ echo main.exe -m %root_path%\models\ggml-%model%.bin -f %root_path%\samples\jfk.wav
54
 
55
  goto :eof
56