Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,6 @@ pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
|
37 |
safety_checker=None,
|
38 |
)
|
39 |
|
40 |
-
pipe.enable_model_cpu_offload()
|
41 |
-
pipe.enable_xformers_memory_efficient_attention()
|
42 |
-
|
43 |
# inference function takes prompt, negative prompt and image
|
44 |
def infer(prompts, negative_prompts, image):
|
45 |
params["controlnet"] = controlnet_params
|
|
|
37 |
safety_checker=None,
|
38 |
)
|
39 |
|
|
|
|
|
|
|
40 |
# inference function takes prompt, negative prompt and image
|
41 |
def infer(prompts, negative_prompts, image):
|
42 |
params["controlnet"] = controlnet_params
|