Spaces:
Runtime error
Runtime error
Commit
•
e90abb5
1
Parent(s):
3dccffc
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def run_lora(prompt, negative, lora_scale, selected_state, sdxl_loras, progress=
|
|
152 |
weight_name = sdxl_loras[selected_state.index]["weights"]
|
153 |
|
154 |
full_path_lora = state_dicts[repo_name]["saved_name"]
|
155 |
-
loaded_state_dict = state_dicts[repo_name]["state_dict"]
|
156 |
cross_attention_kwargs = None
|
157 |
if last_lora != repo_name:
|
158 |
if last_merged:
|
|
|
152 |
weight_name = sdxl_loras[selected_state.index]["weights"]
|
153 |
|
154 |
full_path_lora = state_dicts[repo_name]["saved_name"]
|
155 |
+
loaded_state_dict = copy.deepcopy(state_dicts[repo_name]["state_dict"])
|
156 |
cross_attention_kwargs = None
|
157 |
if last_lora != repo_name:
|
158 |
if last_merged:
|