Update install.bat

The current code assumes that the models directory exists, but this may not always be the case. If the models directory does not exist, the Invoke-WebRequest command fails with a DirectoryNotFoundException error.
This commit is contained in:
arroyoquiel 2023-04-07 00:23:14 -06:00 committed by GitHub
parent 00039f3d2a
commit 8a22bc69e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,7 @@ if .ERRORLEVEL. neq 0 (
) )
echo Downloading latest model echo Downloading latest model
md models
powershell -Command "Invoke-WebRequest -Uri 'https://the-eye.eu/public/AI/models/nomic-ai/gpt4all/gpt4all-lora-quantized-ggml.bin' -OutFile 'models/gpt4all-lora-quantized-ggml.bin'" powershell -Command "Invoke-WebRequest -Uri 'https://the-eye.eu/public/AI/models/nomic-ai/gpt4all/gpt4all-lora-quantized-ggml.bin' -OutFile 'models/gpt4all-lora-quantized-ggml.bin'"
echo Cleaning tmp folder echo Cleaning tmp folder