mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Fix a bug in modules/shared.py
This commit is contained in:
parent
2cf64474f2
commit
a373c96d59
@ -199,6 +199,9 @@ if args.multi_user:
|
|||||||
|
|
||||||
|
|
||||||
def fix_loader_name(name):
|
def fix_loader_name(name):
|
||||||
|
if not name:
|
||||||
|
return name
|
||||||
|
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
if name in ['llamacpp', 'llama.cpp', 'llama-cpp', 'llama cpp']:
|
if name in ['llamacpp', 'llama.cpp', 'llama-cpp', 'llama cpp']:
|
||||||
return 'llama.cpp'
|
return 'llama.cpp'
|
||||||
|
Loading…
Reference in New Issue
Block a user