Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from PIL import Image
|
|
| 5 |
from diffusers import AsymmetricAutoencoderKL
|
| 6 |
import spaces
|
| 7 |
|
| 8 |
-
MODEL_ID = "
|
| 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=
|
| 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:
|