From 126d216384b65e28936a432a7a5514907f0c5b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Semjon=20Kravt=C5=A1enko?= Date: Sat, 6 May 2023 07:14:09 +0300 Subject: [PATCH] Fix possible crash (#53) --- webui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 09058623..a94dfdd3 100644 --- a/webui.py +++ b/webui.py @@ -130,7 +130,8 @@ def update_dependencies(): run_cmd("conda install -y -k gxx_linux-64=11.2.0", environment=True) # Compile and install GPTQ-for-LLaMa - os.rename("setup_cuda.py", "setup.py") + if os.path.exists('setup_cuda.py'): + os.rename("setup_cuda.py", "setup.py") run_cmd("python -m pip install .", environment=True) # Wheel installation can fail while in the build directory of a package with the same name