gschurck commited on
Commit
02bd37b
·
1 Parent(s): a1ad261

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -5,11 +5,7 @@ import requests
5
 
6
  def get_image_embedding(image):
7
  image_model = SentenceTransformer('clip-ViT-B-32')
8
-
9
- # Load and preprocess the image
10
  img_emb = image_model.encode(image)
11
- print(img_emb)
12
- print(type(img_emb))
13
  return {"embedding": img_emb.tolist()}
14
 
15
  def get_text_embedding(text):
 
5
 
6
  def get_image_embedding(image):
7
  image_model = SentenceTransformer('clip-ViT-B-32')
 
 
8
  img_emb = image_model.encode(image)
 
 
9
  return {"embedding": img_emb.tolist()}
10
 
11
  def get_text_embedding(text):