Skip to content

Commit

Permalink
bump version + fix deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelDkhn committed Mar 19, 2024
1 parent e846b90 commit 4f85c6c
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 178 deletions.
12 changes: 2 additions & 10 deletions giza_actions/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,8 @@ def predict(
raise e

body = response.json()
serialized_output = (
json.dumps(body["result"])
if self.framework == Framework.CAIRO
else body["result"]
)
request_id = (
json.dumps(body["request_id"])
if self.framework == Framework.CAIRO
else body["request_id"]
)
serialized_output = body["result"]
request_id = body["request_id"]

if self.framework == Framework.CAIRO:
logging.info("Serialized: ", serialized_output)
Expand Down
Loading

0 comments on commit 4f85c6c

Please sign in to comment.