Samuel L Meyers commited on
Commit
b3c0af8
·
1 Parent(s): 55db009
Files changed (1) hide show
  1. code/app.py +2 -2
code/app.py CHANGED
@@ -2,12 +2,12 @@ from diffusers import AutoPipelineForText2Image, AutoencoderKL, DiffusionPipelin
2
  import torch
3
  import gradio as gr
4
 
5
- vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
6
  # pipeline_text2image = AutoPipelineForText2Image.from_pretrained(
7
  # "stabilityai/stable-diffusion-xl-base-1.0", use_safetensors=True, revision="fp16", torch_dtype=torch.float16, vae=vae
8
  # )
9
  pipeline_text2image = DiffusionPipeline.from_pretrained(
10
- "ARDICAI/stable-diffusion-2-1-finetuned", use_safetensors=True, vae=vae
11
  )
12
 
13
  def gradio_txt2img(prompt):
 
2
  import torch
3
  import gradio as gr
4
 
5
+ # vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
6
  # pipeline_text2image = AutoPipelineForText2Image.from_pretrained(
7
  # "stabilityai/stable-diffusion-xl-base-1.0", use_safetensors=True, revision="fp16", torch_dtype=torch.float16, vae=vae
8
  # )
9
  pipeline_text2image = DiffusionPipeline.from_pretrained(
10
+ "ARDICAI/stable-diffusion-2-1-finetuned"
11
  )
12
 
13
  def gradio_txt2img(prompt):