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
Inference Endpoints
fix handler
Browse files- handler.py +4 -2
handler.py
CHANGED
@@ -18,8 +18,10 @@ class EndpointHandler:
|
|
18 |
A :obj:`list` | `dict`: will be serialized and returned
|
19 |
"""
|
20 |
# get inputs
|
21 |
-
|
22 |
-
|
|
|
|
|
23 |
# if isinstance(inputs, str):
|
24 |
# inputs = [inputs]
|
25 |
|
|
|
18 |
A :obj:`list` | `dict`: will be serialized and returned
|
19 |
"""
|
20 |
# get inputs
|
21 |
+
inputs: dict = data.pop("inputs", data)
|
22 |
+
texts = inputs.pop("texts", None)
|
23 |
+
instruction = inputs.pop("instruction", None)
|
24 |
+
|
25 |
# if isinstance(inputs, str):
|
26 |
# inputs = [inputs]
|
27 |
|