Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def single_condition_generate_image(prompt, spatial_img, height, width, seed, co
|
|
| 31 |
# Set the control type
|
| 32 |
if control_type == "Ghibli":
|
| 33 |
lora_path = os.path.join(lora_base_path, "Ghibli.safetensors")
|
| 34 |
-
set_single_lora(pipe.transformer, lora_path, lora_weights=[1], cond_size=512)
|
| 35 |
|
| 36 |
# Process the image
|
| 37 |
spatial_imgs = [spatial_img] if spatial_img else []
|
|
|
|
| 31 |
# Set the control type
|
| 32 |
if control_type == "Ghibli":
|
| 33 |
lora_path = os.path.join(lora_base_path, "Ghibli.safetensors")
|
| 34 |
+
set_single_lora(pipe.transformer, lora_path, lora_weights=[1], cond_size=512, device="cpu")
|
| 35 |
|
| 36 |
# Process the image
|
| 37 |
spatial_imgs = [spatial_img] if spatial_img else []
|