Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -78,10 +78,6 @@ def generate(
|
|
78 |
np_image = np_image[:, :, None]
|
79 |
np_image = np.concatenate([np_image, np_image, np_image], axis=2)
|
80 |
canny_image = Image.fromarray(np_image)
|
81 |
-
|
82 |
-
if use_lora:
|
83 |
-
pipe.load_lora_weights(lora)
|
84 |
-
pipe.fuse_lora(lora_scale)
|
85 |
|
86 |
if ENABLE_CPU_OFFLOAD:
|
87 |
pipe.enable_model_cpu_offload()
|
|
|
78 |
np_image = np_image[:, :, None]
|
79 |
np_image = np.concatenate([np_image, np_image, np_image], axis=2)
|
80 |
canny_image = Image.fromarray(np_image)
|
|
|
|
|
|
|
|
|
81 |
|
82 |
if ENABLE_CPU_OFFLOAD:
|
83 |
pipe.enable_model_cpu_offload()
|