Spaces:
Paused
Paused
Commit
·
84fd981
1
Parent(s):
3af8c1d
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,9 +83,8 @@ def run_lora(prompt, negative, weight, selected_state):
|
|
| 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 |
-
lora_model.to("cuda")
|
| 89 |
last_merged = True
|
| 90 |
|
| 91 |
image = pipe(
|
|
|
|
| 83 |
pipe.unet,
|
| 84 |
for_inference=True,
|
| 85 |
)
|
| 86 |
+
lora_modal = 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 |
|
| 90 |
image = pipe(
|