el-el-san commited on
Commit
8faed94
·
verified ·
1 Parent(s): a3499c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import numpy as np
3
  import PIL.Image
@@ -7,7 +8,7 @@ from diffusers import ControlNetModel, StableDiffusionXLPipeline, AutoencoderKL
7
  from diffusers import DDIMScheduler, EulerAncestralDiscreteScheduler
8
  import cv2
9
  import torch
10
- import spaces
11
 
12
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
 
@@ -21,7 +22,7 @@ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype
21
  pipe = StableDiffusionXLPipeline.from_pretrained(
22
  "yodayo-ai/clandestine-xl-1.0",
23
  torch_dtype=torch.float16,
24
- #use_safetensors=True,
25
  custom_pipeline="lpw_stable_diffusion_xl",
26
  add_watermarker=False,
27
  variant="fp16"
 
1
+ import spaces
2
  import gradio as gr
3
  import numpy as np
4
  import PIL.Image
 
8
  from diffusers import DDIMScheduler, EulerAncestralDiscreteScheduler
9
  import cv2
10
  import torch
11
+
12
 
13
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
 
22
  pipe = StableDiffusionXLPipeline.from_pretrained(
23
  "yodayo-ai/clandestine-xl-1.0",
24
  torch_dtype=torch.float16,
25
+ use_safetensors=True,
26
  custom_pipeline="lpw_stable_diffusion_xl",
27
  add_watermarker=False,
28
  variant="fp16"