tonyassi commited on
Commit
cfe97ad
1 Parent(s): 429369b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,6 +1,9 @@
1
  import gradio as gr
2
  from diffusers import AutoPipelineForInpainting, AutoencoderKL
3
 
 
 
 
4
  def generate(image_editor):
5
  return image_editor
6
 
 
1
  import gradio as gr
2
  from diffusers import AutoPipelineForInpainting, AutoencoderKL
3
 
4
+ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
5
+ pipeline = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda")
6
+
7
  def generate(image_editor):
8
  return image_editor
9