vcollos commited on
Commit
de32120
·
verified ·
1 Parent(s): bfa01e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -208,10 +208,12 @@ loras = [
208
  ]
209
 
210
  # Initialize the base model
 
211
  dtype = torch.bfloat16
212
  device = "cuda" if torch.cuda.is_available() else "cpu"
213
  base_model = "black-forest-labs/FLUX.1-dev"
214
 
 
215
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
216
  good_vae = AutoencoderKL.from_pretrained(base_model, subfolder="vae", torch_dtype=dtype).to(device)
217
  pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype, vae=taef1).to(device)
 
208
  ]
209
 
210
  # Initialize the base model
211
+ use_auth_token=True
212
  dtype = torch.bfloat16
213
  device = "cuda" if torch.cuda.is_available() else "cpu"
214
  base_model = "black-forest-labs/FLUX.1-dev"
215
 
216
+
217
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
218
  good_vae = AutoencoderKL.from_pretrained(base_model, subfolder="vae", torch_dtype=dtype).to(device)
219
  pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype, vae=taef1).to(device)