Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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 =
|
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,
|