Sentence Similarity
sentence-transformers
PyTorch
Transformers
English
t5
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
prompt-retrieval
text-reranking
feature-extraction
English
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
Eval Results
text-generation-inference
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -17,6 +17,6 @@ class EndpointHandler():
|
|
| 17 |
# get inputs
|
| 18 |
instruction = data.pop("instruction",data)
|
| 19 |
text = data.pop("text", data)
|
| 20 |
-
inputs = [
|
| 21 |
embeddings = self.model.encode(inputs)
|
| 22 |
return embeddings.tolist()
|
|
|
|
| 17 |
# get inputs
|
| 18 |
instruction = data.pop("instruction",data)
|
| 19 |
text = data.pop("text", data)
|
| 20 |
+
inputs = [[s, instruction] for s in text]
|
| 21 |
embeddings = self.model.encode(inputs)
|
| 22 |
return embeddings.tolist()
|