From 76cb09a7f8fddc4bf657b035f9b97601007792eb Mon Sep 17 00:00:00 2001 From: Doctor Diffusion <139909432+DoctorDiffusion@users.noreply.github.com> Date: Mon, 30 Dec 2024 00:58:46 -0500 Subject: [PATCH] Update snake_oil.py --- snake_oil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snake_oil.py b/snake_oil.py index 428d06b..04fabee 100644 --- a/snake_oil.py +++ b/snake_oil.py @@ -33,10 +33,10 @@ class NegativeLoRALoader: } RETURN_TYPES = ("MODEL",) - FUNCTION = "apply_inverted_LoRA" + FUNCTION = "apply_inverted_lora" # Corrected the method name here CATEGORY = "🐍🛢️ Snake Oil" - def apply_snake_oil(self, model, nlora, inverted_strength_value): + def apply_inverted_lora(self, model, nlora, inverted_strength_value): # Corrected the method name here if inverted_strength_value == 0: print("inverted_strength_value is 0, returning the original model.") return (model,)