IbrahimHasani commited on
Commit
93fe568
1 Parent(s): 22ae21c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-patch16")
7
- model = CLIPModel.from_pretrained("openai/clip-vit-base-patch16")
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