Spaces:
Paused
Paused
Commit
•
09baf03
1
Parent(s):
a521474
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def get_cross_attention_kwargs(scale, repo_name, is_compatible):
|
|
98 |
return {"scale": scale}
|
99 |
return None
|
100 |
|
101 |
-
def load_lora_model(pipe, repo_name, full_path_lora, lora_scale):
|
102 |
if repo_name == last_lora:
|
103 |
return
|
104 |
|
@@ -160,7 +160,7 @@ def run_lora(prompt, negative, lora_scale, selected_state):
|
|
160 |
cross_attention_kwargs = get_cross_attention_kwargs(
|
161 |
lora_scale, repo_name, sdxl_loras[selected_state.index]["is_compatible"])
|
162 |
|
163 |
-
load_lora_model(pipe, repo_name, full_path_lora, lora_scale)
|
164 |
|
165 |
image = generate_image(pipe, prompt, negative, cross_attention_kwargs)
|
166 |
|
|
|
98 |
return {"scale": scale}
|
99 |
return None
|
100 |
|
101 |
+
def load_lora_model(pipe, repo_name, full_path_lora, lora_scale, selected_state):
|
102 |
if repo_name == last_lora:
|
103 |
return
|
104 |
|
|
|
160 |
cross_attention_kwargs = get_cross_attention_kwargs(
|
161 |
lora_scale, repo_name, sdxl_loras[selected_state.index]["is_compatible"])
|
162 |
|
163 |
+
load_lora_model(pipe, repo_name, full_path_lora, lora_scale, selected_state)
|
164 |
|
165 |
image = generate_image(pipe, prompt, negative, cross_attention_kwargs)
|
166 |
|