Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -29,4 +29,4 @@ class EndpointHandler():
|
|
29 |
|
30 |
# Perform pooling. In this case, max pooling.
|
31 |
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
32 |
-
return
|
|
|
29 |
|
30 |
# Perform pooling. In this case, max pooling.
|
31 |
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
32 |
+
return sentence_embeddings.tolist()
|