Spaces:
Running
Running
Roddur Dasgupta
commited on
models : cd statements are quoted to allow spaces in path (#1041)
Browse files
examples/whisper.nvim/whisper.nvim
CHANGED
|
@@ -32,7 +32,7 @@ model="base.en"
|
|
| 32 |
|
| 33 |
# export the path to the whisper.cpp repo in the WHISPER_CPP_HOME env variable
|
| 34 |
# https://github.com/ggerganov/whisper.cpp
|
| 35 |
-
cd ${WHISPER_CPP_HOME}
|
| 36 |
|
| 37 |
if [ ! -f ./stream ] ; then
|
| 38 |
echo "whisper.nvim: the 'stream' executable was not found! WHISPER_CPP_HOME=${WHISPER_CPP_HOME}" > /tmp/whisper.nvim
|
|
|
|
| 32 |
|
| 33 |
# export the path to the whisper.cpp repo in the WHISPER_CPP_HOME env variable
|
| 34 |
# https://github.com/ggerganov/whisper.cpp
|
| 35 |
+
cd "${WHISPER_CPP_HOME}"
|
| 36 |
|
| 37 |
if [ ! -f ./stream ] ; then
|
| 38 |
echo "whisper.nvim: the 'stream' executable was not found! WHISPER_CPP_HOME=${WHISPER_CPP_HOME}" > /tmp/whisper.nvim
|
models/download-ggml-model.cmd
CHANGED
|
@@ -33,7 +33,7 @@ goto :eof
|
|
| 33 |
:download_model
|
| 34 |
echo Downloading ggml model %model%...
|
| 35 |
|
| 36 |
-
cd %models_path%
|
| 37 |
|
| 38 |
if exist "ggml-%model%.bin" (
|
| 39 |
echo Model %model% already exists. Skipping download.
|
|
|
|
| 33 |
:download_model
|
| 34 |
echo Downloading ggml model %model%...
|
| 35 |
|
| 36 |
+
cd "%models_path%"
|
| 37 |
|
| 38 |
if exist "ggml-%model%.bin" (
|
| 39 |
echo Model %model% already exists. Skipping download.
|