Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,7 +159,7 @@ def run_lora(prompt, image_url, lora_strings_json, image_strength, cfg_scale, s
|
|
| 159 |
if lora_repo and weights and adapter_name:
|
| 160 |
try:
|
| 161 |
#txt2img_pipe.to(device)
|
| 162 |
-
txt2img_pipe.load_lora_weights(hf_hub_download(lora_repo, weights), adapter_name=lora_name
|
| 163 |
except:
|
| 164 |
print("load lora error")
|
| 165 |
|
|
|
|
| 159 |
if lora_repo and weights and adapter_name:
|
| 160 |
try:
|
| 161 |
#txt2img_pipe.to(device)
|
| 162 |
+
txt2img_pipe.load_lora_weights(hf_hub_download(lora_repo, weights), adapter_name=lora_name)
|
| 163 |
except:
|
| 164 |
print("load lora error")
|
| 165 |
|