Spaces:
Running
on
A100
Running
on
A100
Commit
•
02e03d7
1
Parent(s):
a38ab5b
Update app.py
Browse files
app.py
CHANGED
@@ -132,6 +132,7 @@ def run_lora(prompt, negative, lora_scale, selected_state):
|
|
132 |
cross_attention_kwargs = None
|
133 |
if last_lora != repo_name:
|
134 |
if last_merged:
|
|
|
135 |
pipe = copy.deepcopy(original_pipe)
|
136 |
pipe.to(device)
|
137 |
else:
|
|
|
132 |
cross_attention_kwargs = None
|
133 |
if last_lora != repo_name:
|
134 |
if last_merged:
|
135 |
+
del pipe
|
136 |
pipe = copy.deepcopy(original_pipe)
|
137 |
pipe.to(device)
|
138 |
else:
|