Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def process_controlnet_img(image):
|
|
18 |
controlnet_img = Image.fromarray(controlnet_img)
|
19 |
|
20 |
# load pipelines
|
21 |
-
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.bfloat16).to(
|
22 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell",
|
23 |
vae=taef1,
|
24 |
torch_dtype=torch.bfloat16)
|
|
|
18 |
controlnet_img = Image.fromarray(controlnet_img)
|
19 |
|
20 |
# load pipelines
|
21 |
+
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.bfloat16).to("cuda")
|
22 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell",
|
23 |
vae=taef1,
|
24 |
torch_dtype=torch.bfloat16)
|