Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ def bi_encode(bi_enc,passages):
|
|
| 138 |
#Compute the embeddings using the multi-process pool
|
| 139 |
with st.spinner('Encoding passages into a vector space...'):
|
| 140 |
|
| 141 |
-
if bi_enc == 'intfloat/e5-base':
|
| 142 |
|
| 143 |
corpus_embeddings = bi_encoder.encode(['passage: ' + sentence for sentence in passages], convert_to_tensor=True)
|
| 144 |
|
|
|
|
| 138 |
#Compute the embeddings using the multi-process pool
|
| 139 |
with st.spinner('Encoding passages into a vector space...'):
|
| 140 |
|
| 141 |
+
if bi_enc == 'intfloat/e5-base-v2':
|
| 142 |
|
| 143 |
corpus_embeddings = bi_encoder.encode(['passage: ' + sentence for sentence in passages], convert_to_tensor=True)
|
| 144 |
|