Spaces:
Runtime error
Runtime error
IbrahimHasani
commited on
Commit
•
93fe568
1
Parent(s):
22ae21c
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from transformers import CLIPProcessor, CLIPModel
|
|
3 |
import gradio as gr
|
4 |
|
5 |
# Initialize CLIP model and processor
|
6 |
-
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-
|
7 |
-
model = CLIPModel.from_pretrained("openai/clip-vit-base-
|
8 |
|
9 |
def image_similarity(image: Image.Image, positive_prompt: str, negative_prompt: str):
|
10 |
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
# Initialize CLIP model and processor
|
6 |
+
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
7 |
+
model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
|
8 |
|
9 |
def image_similarity(image: Image.Image, positive_prompt: str, negative_prompt: str):
|
10 |
|