mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-20 17:22:47 +00:00
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 also added a "IF NOT EXIST models/gpt4all-lora-quantized-ggml.bin" if the user already had the model manually downloaded Also added a (y/n) choice
This commit is contained in:
parent
e11128ba73
commit
701f28d7d9
15
install.bat
15
install.bat
@ -128,9 +128,24 @@ echo Downloading latest model
|
||||
IF NOT EXIST models (
|
||||
md models
|
||||
)
|
||||
|
||||
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'"
|
||||
) ELSE (
|
||||
:PROMPT
|
||||
echo.
|
||||
set /p choice="The model file already exists. Do you want to override it? (y/n) "
|
||||
if /i {%choice%}=={y} (
|
||||
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'" && goto :CONTINUE
|
||||
) else if /i {%choice%}=={n} (
|
||||
goto :CONTINUE
|
||||
) else (
|
||||
echo.
|
||||
echo Invalid input. Please enter 'y' or 'n'.
|
||||
goto :PROMPT
|
||||
)
|
||||
)
|
||||
:CONTINUE
|
||||
|
||||
echo Cleaning tmp folder
|
||||
rd /s /q "./tmp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user