Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ekeren authored Feb 11, 2024
1 parent e639f79 commit c88b430
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 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 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 c88b430

Please sign in to comment.