Kkordik commited on
Commit
43e72c6
·
verified ·
1 Parent(s): 0467837

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,10 @@ from diffusers import StableDiffusion3InpaintPipeline, AutoencoderKL
4
  import torch
5
  from PIL import Image, ImageOps
6
  import time
 
 
 
 
7
 
8
  # vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
9
  # pipeline = StableDiffusion3InpaintPipeline(vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda")
 
4
  import torch
5
  from PIL import Image, ImageOps
6
  import time
7
+ from huggingface_hub import login
8
+ import os
9
+
10
+ login(token=os.getenv("HF_TOKEN"))
11
 
12
  # vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
13
  # pipeline = StableDiffusion3InpaintPipeline(vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda")