Skip to content

Commit

Permalink
chore: sagemaker missing quotes in readme (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekeren authored Feb 11, 2024
1 parent f909c52 commit a99de0e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions sagemaker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ The library enables owners of a trained sagemaker model, to access its Endpoints

```js
bring sagemaker;
bring cloud;

let sm = new sagemaker.Endpoint("my-endpoint-name", "my-inference-name);
let sm = new sagemaker.Endpoint("my-endpoint-name", "my-inference-name");

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

new cloud.Function(handler);
```

## License
Expand Down

0 comments on commit a99de0e

Please sign in to comment.