Don't show 'None' in the LoRA list
This commit is contained in:
parent
19e3a59997
commit
c3dc348d1c
2 changed files with 6 additions and 5 deletions
|
@ -73,7 +73,7 @@ def get_available_softprompts():
|
|||
|
||||
|
||||
def get_available_loras():
|
||||
return ['None'] + sorted([item.name for item in list(Path(shared.args.lora_dir).glob('*')) if not item.name.endswith(('.txt', '-np', '.pt', '.json'))], key=str.lower)
|
||||
return sorted([item.name for item in list(Path(shared.args.lora_dir).glob('*')) if not item.name.endswith(('.txt', '-np', '.pt', '.json'))], key=str.lower)
|
||||
|
||||
|
||||
def load_model_wrapper(selected_model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue