multimodalart HF staff commited on
Commit
02e03d7
β€’
1 Parent(s): a38ab5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: