From 587b3f04514cc11aa403a751bce14be525424c95 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Thu, 31 Aug 2023 23:54:05 +0200 Subject: [PATCH] added -y to cude toolkit install --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 1a150c77..49cb0bbf 100644 --- a/app.py +++ b/app.py @@ -850,7 +850,7 @@ class LoLLMsWebUI(LoLLMsAPPI): def upgrade_to_gpu(self): ASCIIColors.yellow("Received command to upgrade to GPU") ASCIIColors.info("Installing cuda toolkit") - res = subprocess.check_call(["conda", "install", "-c", "nvidia/label/cuda-11.7.0", "-c", "nvidia", "-c", "conda-forge", "cuda-toolkit", "ninja", "git", "--force-reinstall"]) + res = subprocess.check_call(["conda", "install", "-c", "nvidia/label/cuda-11.7.0", "-c", "nvidia", "-c", "conda-forge", "cuda-toolkit", "ninja", "git", "--force-reinstall", "-y"]) if res!=0: ASCIIColors.red("Couldn't install cuda toolkit") return jsonify({'status':False, "error": "Couldn't install cuda toolkit. Make sure you are running from conda environment"})