Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
226da46
1
Parent(s):
bf6d614
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,7 @@ def run_lora(prompt, negative, weight, selected_state):
|
|
| 83 |
pipe.unet,
|
| 84 |
for_inference=True,
|
| 85 |
)
|
|
|
|
| 86 |
lora_model.apply_to(pipe.text_encoder, pipe.unet) #is apply too all you need?
|
| 87 |
last_merged = True
|
| 88 |
|
|
|
|
| 83 |
pipe.unet,
|
| 84 |
for_inference=True,
|
| 85 |
)
|
| 86 |
+
lora_model.to("cuda")
|
| 87 |
lora_model.apply_to(pipe.text_encoder, pipe.unet) #is apply too all you need?
|
| 88 |
last_merged = True
|
| 89 |
|