Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from PIL import Image
|
|
13 |
import numpy as np
|
14 |
from small_256_model import UNet as small_UNet
|
15 |
from big_1024_model import UNet as big_UNet
|
16 |
-
from CLIP import load as load_clip
|
17 |
from rich import print as rp
|
18 |
|
19 |
# Device configuration
|
@@ -31,8 +31,10 @@ model_repo_id = "K00B404/pix2pix_flux"
|
|
31 |
# Global model variable
|
32 |
global_model = None
|
33 |
|
34 |
-
# CLIP
|
35 |
clip_model, clip_tokenizer = load_clip()
|
|
|
|
|
36 |
|
37 |
def load_model():
|
38 |
"""Load the models at startup"""
|
|
|
13 |
import numpy as np
|
14 |
from small_256_model import UNet as small_UNet
|
15 |
from big_1024_model import UNet as big_UNet
|
16 |
+
from CLIP import load as load_clip,load_vae
|
17 |
from rich import print as rp
|
18 |
|
19 |
# Device configuration
|
|
|
31 |
# Global model variable
|
32 |
global_model = None
|
33 |
|
34 |
+
# CLIP and VAE
|
35 |
clip_model, clip_tokenizer = load_clip()
|
36 |
+
vae = load_vae()
|
37 |
+
|
38 |
|
39 |
def load_model():
|
40 |
"""Load the models at startup"""
|