nickmuchi commited on
Commit
61c36ad
1 Parent(s): a4f7662

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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