nickmuchi commited on
Commit
2e065a4
·
1 Parent(s): ffc0638

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -123,10 +123,10 @@ def bi_encode(bi_enc,passages):
123
 
124
  global bi_encoder
125
  #We use the Bi-Encoder to encode all passages, so that we can use it with sematic search
126
- model = SentenceTransformer(bi_enc)
127
 
128
  #quantize the model
129
- bi_encoder = quantize_dynamic(model, {Linear, Embedding})
130
 
131
  #Compute the embeddings using the multi-process pool
132
  with st.spinner('Encoding passages into a vector space...'):
 
123
 
124
  global bi_encoder
125
  #We use the Bi-Encoder to encode all passages, so that we can use it with sematic search
126
+ bi_encoder = SentenceTransformer(bi_enc)
127
 
128
  #quantize the model
129
+ #bi_encoder = quantize_dynamic(model, {Linear, Embedding})
130
 
131
  #Compute the embeddings using the multi-process pool
132
  with st.spinner('Encoding passages into a vector space...'):