Update app.py
Browse files
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 |
-
|
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...'):
|