Menyu commited on
Commit
0828993
·
verified ·
1 Parent(s): 4b8dc70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import numpy as np
4
  import spaces
5
  import torch
6
- from diffusers import AutoPipelineForText2Image, AutoencoderKL
7
  from compel import Compel, ReturnedEmbeddingsType
8
 
9
  import re
@@ -226,7 +226,7 @@ MAX_IMAGE_SIZE = 4096
226
 
227
  if torch.cuda.is_available():
228
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
229
- pipe = AutoPipelineForText2Image.from_single_file(
230
  "https://huggingface.co/bluepen5805/illustrious_pencil-XL/illustrious_pencil-XL-v2.0.0.safetensors",
231
  vae=vae,
232
  use_safetensors=True,
 
3
  import numpy as np
4
  import spaces
5
  import torch
6
+ from diffusers import StableDiffusionXLPipeline, AutoencoderKL
7
  from compel import Compel, ReturnedEmbeddingsType
8
 
9
  import re
 
226
 
227
  if torch.cuda.is_available():
228
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
229
+ pipe = StableDiffusionXLPipeline.from_single_file(
230
  "https://huggingface.co/bluepen5805/illustrious_pencil-XL/illustrious_pencil-XL-v2.0.0.safetensors",
231
  vae=vae,
232
  use_safetensors=True,