Spaces:
Runtime error
Runtime error
abhi001vj
commited on
Commit
·
03819ce
1
Parent(s):
5546ef7
added the fix for snetence encoder
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ if len(ALL_FILES) > 0:
|
|
205 |
# extract batch
|
206 |
batch = [doc.content for doc in docs[i:i_end]]
|
207 |
# generate embeddings for batch
|
208 |
-
emb =
|
209 |
# get metadata
|
210 |
meta = [doc.meta for doc in docs[i:i_end]]
|
211 |
# create unique IDs
|
|
|
205 |
# extract batch
|
206 |
batch = [doc.content for doc in docs[i:i_end]]
|
207 |
# generate embeddings for batch
|
208 |
+
emb = sentence_encoder.encode(batch).tolist()
|
209 |
# get metadata
|
210 |
meta = [doc.meta for doc in docs[i:i_end]]
|
211 |
# create unique IDs
|