From 733127b1608baa6c8ef9c68bf0bf22acfcd94f5e Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 16 Sep 2023 23:01:12 +0800 Subject: [PATCH] class.py off by 1 --- class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.py b/class.py index ce9d56e2a..1af9082a1 100644 --- a/class.py +++ b/class.py @@ -41,7 +41,7 @@ class model_backend(InferenceModel): foundfile = False try: files = os.listdir(model_path) - foundfile = len([filename for filename in files if (("ggml" in filename.lower() and ".bin" in filename.lower()) or ".gguf" in filename.lower())])>1 + foundfile = len([filename for filename in files if (("ggml" in filename.lower() and ".bin" in filename.lower()) or ".gguf" in filename.lower())])>0 except: pass return foundfile