refactor: only use LoRA activate on handover to async worker, extract method

This commit is contained in:
Manuel Schmid
2024-03-11 23:49:45 +01:00
parent 532401df76
commit 57a01865b9
5 changed files with 15 additions and 17 deletions
+4
View File
@@ -360,3 +360,7 @@ def makedirs_with_log(path):
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]]