Commit
·
97b4689
1
Parent(s):
cd34443
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 |
lora_model.to(device)
|
88 |
#lora_model.merge_to(
|
|
|
83 |
pipe.unet,
|
84 |
for_inference=True,
|
85 |
)
|
86 |
+
lora_model.to(device)
|
87 |
lora_model.apply_to(pipe.text_encoder, pipe.unet) #is apply too all you need?
|
88 |
lora_model.to(device)
|
89 |
#lora_model.merge_to(
|