Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
69da03e
1
Parent(s):
64106f1
Update app.py
Browse files
app.py
CHANGED
@@ -102,6 +102,9 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, wid
|
|
102 |
else:
|
103 |
prompt_mash = prompt
|
104 |
|
|
|
|
|
|
|
105 |
# Load LoRA weights
|
106 |
with calculateDuration(f"Loading LoRA weights for {selected_lora['title']}"):
|
107 |
if "weights" in selected_lora:
|
@@ -126,8 +129,6 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, wid
|
|
126 |
yield image, seed, gr.update(value=progress_bar, visible=True)
|
127 |
|
128 |
yield final_image, seed, gr.update(value=progress_bar, visible=False)
|
129 |
-
with calculateDuration("Unloading LoRA"):
|
130 |
-
pipe.unload_lora_weights()
|
131 |
|
132 |
def get_huggingface_safetensors(link):
|
133 |
split_link = link.split("/")
|
|
|
102 |
else:
|
103 |
prompt_mash = prompt
|
104 |
|
105 |
+
with calculateDuration("Unloading LoRA"):
|
106 |
+
pipe.unload_lora_weights()
|
107 |
+
|
108 |
# Load LoRA weights
|
109 |
with calculateDuration(f"Loading LoRA weights for {selected_lora['title']}"):
|
110 |
if "weights" in selected_lora:
|
|
|
129 |
yield image, seed, gr.update(value=progress_bar, visible=True)
|
130 |
|
131 |
yield final_image, seed, gr.update(value=progress_bar, visible=False)
|
|
|
|
|
132 |
|
133 |
def get_huggingface_safetensors(link):
|
134 |
split_link = link.split("/")
|