Spaces:
Running
on
Zero
Running
on
Zero
forplaytvplus
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,6 @@ def generate(
|
|
116 |
pipe.set_adapters([adapter_name1, adapter_name2], adapter_weights=[lora_scale, lora_scale2])
|
117 |
|
118 |
enable_model_cpu_offload()
|
119 |
-
pipe.to(device)
|
120 |
generator = torch.Generator().manual_seed(seed)
|
121 |
|
122 |
if not use_negative_prompt:
|
|
|
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:
|