recoilme commited on
Commit
7673b7d
·
verified ·
1 Parent(s): a27c2fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
5
  from diffusers import AsymmetricAutoencoderKL
6
  import spaces
7
 
8
- MODEL_ID = "babkasotona/vae8x16x32ch"
9
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
10
  DTYPE = torch.float16 if DEVICE == "cuda" else torch.float32
11
 
@@ -53,7 +53,7 @@ def get_vae():
53
  # -------------------------
54
  # Encode / Decode
55
  # -------------------------
56
- @spaces.GPU(duration=50)
57
  def encode_decode(img: Image.Image):
58
 
59
  if img is None:
 
5
  from diffusers import AsymmetricAutoencoderKL
6
  import spaces
7
 
8
+ MODEL_ID = "AiArtLab/sdxs-1b"
9
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
10
  DTYPE = torch.float16 if DEVICE == "cuda" else torch.float32
11
 
 
53
  # -------------------------
54
  # Encode / Decode
55
  # -------------------------
56
+ @spaces.GPU(duration=60)
57
  def encode_decode(img: Image.Image):
58
 
59
  if img is None: