Kosmos2-endpoint / README.md
Yan
updated readme
1a1a779
|
raw
history blame
714 Bytes
metadata
license: mit

A model card with a customer handler to deploy the MSFT Kosmos2 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

{
    "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]p(https://huggingface.co/y22ma/Kosmos2-endpoint/blob/main/endpoint_tester.py) that provides example API call the inference endpoint.