multimodalart HF staff commited on
Commit
94f5b13
1 Parent(s): 9cfde10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -258,6 +258,7 @@ def run_lora(face_image, prompt, negative, lora_scale, selected_state, face_stre
258
  if last_lora != repo_name:
259
  if(last_fused):
260
  pipe.unfuse_lora()
 
261
  pipe.load_lora_weights(loaded_state_dict)
262
  pipe.fuse_lora()
263
  last_fused = True
 
258
  if last_lora != repo_name:
259
  if(last_fused):
260
  pipe.unfuse_lora()
261
+ pipe.unload_lora_weights()
262
  pipe.load_lora_weights(loaded_state_dict)
263
  pipe.fuse_lora()
264
  last_fused = True