From 9e60a8c3f88d764f8d8e7e971c02209344c0cc80 Mon Sep 17 00:00:00 2001 From: cantor-set Date: Thu, 22 Feb 2024 18:51:51 -0500 Subject: [PATCH] renamed parameter --- modules/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/util.py b/modules/util.py index d350f3c6..527bc82b 100644 --- a/modules/util.py +++ b/modules/util.py @@ -187,11 +187,11 @@ def ordinal_suffix(number: int) -> str: return 'th' if 10 <= number % 100 <= 20 else {1: 'st', 2: 'nd', 3: 'rd'}.get(number % 10, 'th') -def parse_lora_references_from_prompt(items: str, loras: List[Tuple[AnyStr, float]], loras_limit: int = 5): +def parse_lora_references_from_prompt(prompt: str, loras: List[Tuple[AnyStr, float]], loras_limit: int = 5): new_loras = [] - for token in items.split(","): + for token in prompt.split(","): m = LORAS_PROMPT_PATTERN.match(token)