forplaytvplus commited on
Commit
76340d8
1 Parent(s): 04c24b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def generate(
115
  adapter_name2 = cached_loras[lora_key2]
116
  pipe.set_adapters([adapter_name1, adapter_name2], adapter_weights=[lora_scale, lora_scale2])
117
 
118
- enable_model_cpu_offload()
119
  generator = torch.Generator().manual_seed(seed)
120
 
121
  if not use_negative_prompt:
 
115
  adapter_name2 = cached_loras[lora_key2]
116
  pipe.set_adapters([adapter_name1, adapter_name2], adapter_weights=[lora_scale, lora_scale2])
117
 
118
+ pipe.enable_model_cpu_offload()
119
  generator = torch.Generator().manual_seed(seed)
120
 
121
  if not use_negative_prompt: