Spaces:
Running
Running
Pclanglais
commited on
Commit
•
9934680
1
Parent(s):
feacba8
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def vector_search(sentence_query):
|
|
51 |
closest_doc_index = np.argmax(similarities)
|
52 |
|
53 |
# Closest document's embedding
|
54 |
-
closest_doc_embedding =
|
55 |
|
56 |
return closest_doc_embedding
|
57 |
|
|
|
51 |
closest_doc_index = np.argmax(similarities)
|
52 |
|
53 |
# Closest document's embedding
|
54 |
+
closest_doc_embedding = embeddings_text[closest_doc_index]
|
55 |
|
56 |
return closest_doc_embedding
|
57 |
|