Skip to content

Commit

Permalink
chore: sagemaker simplified code in README (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekeren authored Feb 11, 2024
1 parent a99de0e commit b7e0668
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sagemaker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ bring cloud;
let sm = new sagemaker.Endpoint("my-endpoint-name", "my-inference-name");

let handler = inflight () => {
let res = sm.invoke({inputs: "do AI stuff"}, sagemaker.InvocationOptions {
let res = sm.invoke({
inputs: "do AI stuff"
},
ContentType: "application/json"
});
);
log(res.Body);
};

Expand Down

0 comments on commit b7e0668

Please sign in to comment.