multimodalart HF staff commited on
Commit
e90abb5
β€’
1 Parent(s): 3dccffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: