Resolved model download error

If previously there were a "models" folder, it would just close the install.bat window and wouldn't continue, so I removed the "else ()" and added a "IF NOT EXIST models/gpt4all-lora-quantized-ggml.bin" if the user already had the model manually downloaded
This commit is contained in:
arroyoquiel 2023-04-07 01:47:43 -06:00 committed by GitHub
parent dc6685d16b
commit e11128ba73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,8 +127,10 @@ if %ERRORLEVEL% neq 0 (
echo Downloading latest model
IF NOT EXIST models (
md models
) else ()
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'"
)
IF NOT EXIST 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
rd /s /q "./tmp"