multimodalart HF staff commited on
Commit
cacbc2e
·
verified ·
1 Parent(s): 8ca8d03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -206,6 +206,7 @@ def merge_incompatible_lora(full_path_lora, lora_scale):
206
  del lora_model
207
  @spaces.GPU
208
  def generate_image(prompt, negative, face_emb, face_image, image_strength, images, guidance_scale, face_strength, depth_control_scale, last_lora, repo_name, loaded_state_dict, lora_scale, sdxl_loras, selected_state_index):
 
209
  if last_lora != repo_name:
210
  if(last_fused):
211
  pipe.unfuse_lora()
 
206
  del lora_model
207
  @spaces.GPU
208
  def generate_image(prompt, negative, face_emb, face_image, image_strength, images, guidance_scale, face_strength, depth_control_scale, last_lora, repo_name, loaded_state_dict, lora_scale, sdxl_loras, selected_state_index):
209
+ global last_fused
210
  if last_lora != repo_name:
211
  if(last_fused):
212
  pipe.unfuse_lora()