Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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()
|