Yan commited on
Commit
1a1a779
1 Parent(s): f200302

updated readme

Browse files
Files changed (1) hide show
  1. README.md +13 -2
README.md CHANGED
@@ -2,6 +2,17 @@
2
  license: mit
3
  ---
4
 
5
- A model card with a customer handler to deploy the MSFT Kosmos2 model as an inference endpoint. Enjoy!
6
 
7
- Hit me up on X/Twitter and let me know what you guys are building!
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: mit
3
  ---
4
 
5
+ 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!
6
 
7
+ Hit me up on X/Twitter @yanMachX and let me know what you guys are building!
8
+
9
+ ### Expected Request payload
10
+ ```json
11
+ {
12
+ "inputs": "you can just leave this empty, for some reason, inference endpoint expects this",
13
+ # base64 encoded string representation of the image blob, here's an example
14
+ "image" : "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAAABGdBTUEAALGPC"
15
+ }
16
+ ```
17
+
18
+ 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.