cogcorp commited on
Commit
0e0b25b
·
1 Parent(s): 6b24be8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ class SemanticSearch:
80
  def get_text_embedding(self, texts, batch=1000):
81
  embeddings = []
82
  for i in range(0, len(texts), batch):
83
- text_batch = texts[i:(i+batch
84
  emb_batch = self.use(text_batch)
85
  embeddings.append(emb_batch)
86
  embeddings = np.vstack(embeddings)
 
80
  def get_text_embedding(self, texts, batch=1000):
81
  embeddings = []
82
  for i in range(0, len(texts), batch):
83
+ text_batch = texts[i:(i+batch):
84
  emb_batch = self.use(text_batch)
85
  embeddings.append(emb_batch)
86
  embeddings = np.vstack(embeddings)