Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,6 @@ def run_lora(prompt, image_url, lora_strings_json, image_strength, cfg_scale, s
|
|
| 128 |
# Load LoRA weights
|
| 129 |
gr.Info("Start to load LoRA ...")
|
| 130 |
with calculateDuration("Unloading LoRA"):
|
| 131 |
-
txt2img_pipe.to(device)
|
| 132 |
txt2img_pipe.unload_lora_weights()
|
| 133 |
|
| 134 |
lora_configs = None
|
|
@@ -162,7 +161,6 @@ def run_lora(prompt, image_url, lora_strings_json, image_strength, cfg_scale, s
|
|
| 162 |
txt2img_pipe.load_lora_weights(hf_hub_download(lora_repo, weights), adapter_name=lora_name)
|
| 163 |
except:
|
| 164 |
print("load lora error")
|
| 165 |
-
|
| 166 |
# set lora weights
|
| 167 |
#if len(lora_names) > 0:
|
| 168 |
#txt2img_pipe.to(device)
|
|
|
|
| 128 |
# Load LoRA weights
|
| 129 |
gr.Info("Start to load LoRA ...")
|
| 130 |
with calculateDuration("Unloading LoRA"):
|
|
|
|
| 131 |
txt2img_pipe.unload_lora_weights()
|
| 132 |
|
| 133 |
lora_configs = None
|
|
|
|
| 161 |
txt2img_pipe.load_lora_weights(hf_hub_download(lora_repo, weights), adapter_name=lora_name)
|
| 162 |
except:
|
| 163 |
print("load lora error")
|
|
|
|
| 164 |
# set lora weights
|
| 165 |
#if len(lora_names) > 0:
|
| 166 |
#txt2img_pipe.to(device)
|