Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -28,7 +28,7 @@ class EndpointHandler():
|
|
28 |
"""
|
29 |
sentences = data.pop("inputs",data)
|
30 |
# inputs = tokenizer("I love burritos!", return_tensors="pt")
|
31 |
-
pred = onnx_extractor(sentences)
|
32 |
return pred
|
33 |
# Perform pooling. In this case, max pooling.
|
34 |
# sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
|
|
28 |
"""
|
29 |
sentences = data.pop("inputs",data)
|
30 |
# inputs = tokenizer("I love burritos!", return_tensors="pt")
|
31 |
+
pred = self.onnx_extractor(sentences)
|
32 |
return pred
|
33 |
# Perform pooling. In this case, max pooling.
|
34 |
# sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|