Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -75,11 +75,8 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidan
|
|
75 |
|
76 |
|
77 |
if lora_id and lora_id.strip() != "":
|
78 |
-
|
79 |
-
|
80 |
-
load_lora_auto(pipe, lora_id)
|
81 |
-
except Exception as e:
|
82 |
-
return f"Error loading LoRA: {e}", seed
|
83 |
|
84 |
|
85 |
try:
|
|
|
75 |
|
76 |
|
77 |
if lora_id and lora_id.strip() != "":
|
78 |
+
pipe.unload_lora_weights()
|
79 |
+
load_lora_auto(pipe, lora_id)
|
|
|
|
|
|
|
80 |
|
81 |
|
82 |
try:
|