LTT commited on
Commit
57aa9b1
·
verified ·
1 Parent(s): 3a9f0d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
13
  access_token = os.getenv("HUGGINGFACE_TOKEN")
14
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
15
  good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae", torch_dtype=dtype, token=access_token).to(device)
16
- pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1, token=access_toke).to(device)
17
  torch.cuda.empty_cache()
18
 
19
  MAX_SEED = np.iinfo(np.int32).max
 
13
  access_token = os.getenv("HUGGINGFACE_TOKEN")
14
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
15
  good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae", torch_dtype=dtype, token=access_token).to(device)
16
+ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1, token=access_token).to(device)
17
  torch.cuda.empty_cache()
18
 
19
  MAX_SEED = np.iinfo(np.int32).max