File size: 713 Bytes
6ba2ab1 33752b0 1a1a779 33752b0 1a1a779 4ab4556 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
---
license: mit
---
A model card with a customer handler to deploy the [MSFT Kosmos2](https://huggingface.co/spaces/ydshieh/Kosmos-2) model as an inference endpoint. Enjoy!
Hit me up on X/Twitter @yanMachX and let me know what you guys are building!
### Expected Request payload
```json
{
"inputs": "you can just leave this empty, for some reason, inference endpoint expects this",
# base64 encoded string representation of the image blob, here's an example
"image" : "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAAABGdBTUEAALGPC"
}
```
There is a [python script](https://huggingface.co/y22ma/Kosmos2-endpoint/blob/main/endpoint_tester.py) that provides example API call the inference endpoint.
|