From 0a69e3b8ca07808f415056cbe7d1797897183e95 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 15 Nov 2023 13:39:38 +0100 Subject: [PATCH] Update personality.py --- lollms/personality.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lollms/personality.py b/lollms/personality.py index 15f9e81..a54ed02 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -1266,18 +1266,6 @@ class APScript(StateMachine): ASCIIColors.blue("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*") - @staticmethod - def reinstall_pytorch_with_cuda(): - result = subprocess.run(["pip", "install", "--upgrade", "torch", "torchvision", "torchaudio", "--no-cache-dir", "--index-url", "https://download.pytorch.org/whl/cu118"]) - if result.returncode != 0: - ASCIIColors.warning("Couldn't find Cuda build tools on your PC. Reverting to CPU.") - result = subprocess.run(["pip", "install", "--upgrade", "torch", "torchvision", "torchaudio", "--no-cache-dir"]) - if result.returncode != 0: - ASCIIColors.error("Couldn't install pytorch !!") - else: - ASCIIColors.error("Pytorch installed successfully!!") - - def add_file(self, path, callback=None): if callback is not None: callback("File added successfully",MSG_TYPE.MSG_TYPE_INFO)