Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,8 +83,8 @@ class SemanticSearch:
|
|
| 83 |
text_batch = texts[i:(i+batch)]
|
| 84 |
emb_batch = self.use(text_batch)
|
| 85 |
embeddings.append(emb_batch)
|
| 86 |
-
|
| 87 |
-
|
| 88 |
|
| 89 |
|
| 90 |
def load_recommender(path, start_page=1):
|
|
|
|
| 83 |
text_batch = texts[i:(i+batch)]
|
| 84 |
emb_batch = self.use(text_batch)
|
| 85 |
embeddings.append(emb_batch)
|
| 86 |
+
embeddings = np.vstack(embeddings)
|
| 87 |
+
return embeddings
|
| 88 |
|
| 89 |
|
| 90 |
def load_recommender(path, start_page=1):
|