Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,8 @@ import torch
|
|
| 5 |
from PIL import Image
|
| 6 |
import os
|
| 7 |
|
|
|
|
|
|
|
| 8 |
from transformers import CLIPVisionModelWithProjection, CLIPImageProcessor
|
| 9 |
from kolors.pipelines.pipeline_stable_diffusion_xl_chatglm_256_ipadapter import StableDiffusionXLPipeline
|
| 10 |
from kolors.models.modeling_chatglm import ChatGLMModel
|
|
@@ -13,7 +15,7 @@ from kolors.models.unet_2d_condition import UNet2DConditionModel
|
|
| 13 |
from diffusers import AutoencoderKL, EulerDiscreteScheduler
|
| 14 |
|
| 15 |
from huggingface_hub import snapshot_download
|
| 16 |
-
|
| 17 |
|
| 18 |
device = "cuda"
|
| 19 |
root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
| 5 |
from PIL import Image
|
| 6 |
import os
|
| 7 |
|
| 8 |
+
import spaces
|
| 9 |
+
|
| 10 |
from transformers import CLIPVisionModelWithProjection, CLIPImageProcessor
|
| 11 |
from kolors.pipelines.pipeline_stable_diffusion_xl_chatglm_256_ipadapter import StableDiffusionXLPipeline
|
| 12 |
from kolors.models.modeling_chatglm import ChatGLMModel
|
|
|
|
| 15 |
from diffusers import AutoencoderKL, EulerDiscreteScheduler
|
| 16 |
|
| 17 |
from huggingface_hub import snapshot_download
|
| 18 |
+
|
| 19 |
|
| 20 |
device = "cuda"
|
| 21 |
root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|