Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ from PIL import Image
|
|
4 |
from diffusers import AutoPipelineForText2Image, DDIMScheduler
|
5 |
from transformers import CLIPVisionModelWithProjection
|
6 |
import numpy as np
|
7 |
-
import spaces
|
|
|
8 |
|
9 |
-
# Load models and configure pipeline
|
10 |
image_encoder = CLIPVisionModelWithProjection.from_pretrained(
|
11 |
"h94/IP-Adapter",
|
12 |
subfolder="models/image_encoder",
|
|
|
4 |
from diffusers import AutoPipelineForText2Image, DDIMScheduler
|
5 |
from transformers import CLIPVisionModelWithProjection
|
6 |
import numpy as np
|
7 |
+
import spaces
|
8 |
+
|
9 |
|
|
|
10 |
image_encoder = CLIPVisionModelWithProjection.from_pretrained(
|
11 |
"h94/IP-Adapter",
|
12 |
subfolder="models/image_encoder",
|