mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 04:17:52 +00:00
Merge pull request #22 from arroyoquiel/patch-4
Resolved model download error
This commit is contained in:
commit
dfb60f013f
19
install.bat
19
install.bat
@ -127,8 +127,25 @@ if %ERRORLEVEL% neq 0 (
|
|||||||
echo Downloading latest model
|
echo Downloading latest model
|
||||||
IF NOT EXIST models (
|
IF NOT EXIST models (
|
||||||
md models
|
md models
|
||||||
) else ()
|
)
|
||||||
|
|
||||||
|
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'"
|
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
|
echo Cleaning tmp folder
|
||||||
rd /s /q "./tmp"
|
rd /s /q "./tmp"
|
||||||
|
Loading…
Reference in New Issue
Block a user