FranklinMoses commited on
Commit
bd23a27
1 Parent(s): 6000a14
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -6,7 +6,6 @@ import numpy as np
6
  import torch.nn.functional as F
7
  import clip
8
  import cv2
9
-
10
  # Compute the cosine similarity between two vectors.
11
  def cosine_similarity(a, b):
12
  return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
@@ -26,7 +25,7 @@ def compute_text_embeddings(text_prompts):
26
  zoo=dg.connect(dg.CLOUD,zoo_url='https://cs.degirum.com/degirum/kvk_upload_test',token=st.secrets["DG_TOKEN"])
27
 
28
  st.title('DeGirum CLIP model Demo')
29
-
30
  with st.sidebar:
31
  st.header('Specify Model Options Below')
32
 
 
6
  import torch.nn.functional as F
7
  import clip
8
  import cv2
 
9
  # Compute the cosine similarity between two vectors.
10
  def cosine_similarity(a, b):
11
  return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
 
25
  zoo=dg.connect(dg.CLOUD,zoo_url='https://cs.degirum.com/degirum/kvk_upload_test',token=st.secrets["DG_TOKEN"])
26
 
27
  st.title('DeGirum CLIP model Demo')
28
+ embeddings = []
29
  with st.sidebar:
30
  st.header('Specify Model Options Below')
31