From a373c96d5931ad73eb41ed3e045d9846fb7533d6 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:36:35 -0700 Subject: [PATCH] Fix a bug in modules/shared.py --- modules/shared.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/shared.py b/modules/shared.py index c2f5e0f2..30f6512c 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -199,6 +199,9 @@ if args.multi_user: def fix_loader_name(name): + if not name: + return name + name = name.lower() if name in ['llamacpp', 'llama.cpp', 'llama-cpp', 'llama cpp']: return 'llama.cpp'