Removed another circular reference

This commit is contained in:
cantor-set
2024-04-10 00:34:00 -04:00
parent af8980105a
commit 3e8681a4d7
4 changed files with 41 additions and 47 deletions
+2 -8
View File
@@ -374,13 +374,6 @@ 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 makedirs_with_log(path):
try:
os.makedirs(path, exist_ok=True)
except OSError as error:
print(f'Directory {path} could not be created, reason: {error}')
def get_enabled_loras(loras: list) -> list:
return [[lora[1], lora[2]] for lora in loras if lora[0]]
@@ -401,4 +394,5 @@ def parse_lora_references_from_prompt(prompt: str, loras: List[Tuple[AnyStr, flo
if lora[0] != "None":
updated_loras.append(lora)
return updated_loras[:loras_limit]
return updated_loras[:loras_limit]