Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import torch
|
|
| 5 |
from PIL import Image
|
| 6 |
import os
|
| 7 |
|
| 8 |
-
|
| 9 |
from kolors.pipelines.pipeline_stable_diffusion_xl_chatglm_256_ipadapter import StableDiffusionXLPipeline
|
| 10 |
from kolors.models.modeling_chatglm import ChatGLMModel
|
| 11 |
from kolors.models.tokenization_chatglm import ChatGLMTokenizer
|
|
@@ -87,7 +87,7 @@ def infer(prompt, ip_adapter_image, ip_adapter_scale=0.5, negative_prompt="", se
|
|
| 87 |
examples = [
|
| 88 |
["A dog", "minta.jpeg", 0.3],
|
| 89 |
["A cat", "blue_hair.png", 0.55],
|
| 90 |
-
[" ", "
|
| 91 |
]
|
| 92 |
|
| 93 |
css="""
|
|
|
|
| 5 |
from PIL import Image
|
| 6 |
import os
|
| 7 |
|
| 8 |
+
LIPVisionModelWithProjection, CLIPImageProcessor
|
| 9 |
from kolors.pipelines.pipeline_stable_diffusion_xl_chatglm_256_ipadapter import StableDiffusionXLPipeline
|
| 10 |
from kolors.models.modeling_chatglm import ChatGLMModel
|
| 11 |
from kolors.models.tokenization_chatglm import ChatGLMTokenizer
|
|
|
|
| 87 |
examples = [
|
| 88 |
["A dog", "minta.jpeg", 0.3],
|
| 89 |
["A cat", "blue_hair.png", 0.55],
|
| 90 |
+
[" ", "https://cdn-uploads.huggingface.co/production/uploads/624bebf604abc7ebb01789af/57RWJSJDw6_JVKeAcusiD.png", 1.0],
|
| 91 |
]
|
| 92 |
|
| 93 |
css="""
|