From 169ed807dba577f2d201f4d0c82d11114fecbd7c Mon Sep 17 00:00:00 2001 From: Royce Schultz Date: Thu, 18 Apr 2024 02:36:32 -0600 Subject: [PATCH] Set LORA_LIST on class init so list can be refreshed. --- lora_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lora_info.py b/lora_info.py index aa911de..d05d88a 100644 --- a/lora_info.py +++ b/lora_info.py @@ -103,7 +103,6 @@ def get_lora_info(lora_name): return (output, trainedWords, examplePrompt, baseModel) -LORA_LIST = sorted(folder_paths.get_filename_list("loras"), key=str.lower) @server.PromptServer.instance.routes.post('/lora_info') async def fetch_lora_info(request): @@ -119,6 +118,7 @@ class LoraInfo: @classmethod def INPUT_TYPES(s): + LORA_LIST = sorted(folder_paths.get_filename_list("loras"), key=str.lower) return { "required": { "lora_name": (LORA_LIST, )