Skip to content

Commit

Permalink
Fix to SageMakerEmbedding class (#10778)
Browse files Browse the repository at this point in the history
* Fix to SageMakerEmbedding class

* cr

---------

Co-authored-by: Haotian Zhang <[email protected]>
  • Loading branch information
dgallitelli and hatianzhang authored Feb 16, 2024
1 parent 9d4c630 commit a900d5e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ def serialize_input(self, request: List[str], model_kwargs: dict) -> bytes:
return request_str.encode("utf-8")

def deserialize_output(self, response: "StreamingBody") -> List[List[float]]:
response_json = json.loads(response.read().decode("utf-8"))
return response_json["vectors"]
return json.loads(response.read().decode("utf-8"))

0 comments on commit a900d5e

Please sign in to comment.