multimodalart HF staff commited on
Commit
c6dfa2b
·
verified ·
1 Parent(s): 03100de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(device)
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)