| tags: | |
| - image-to-text | |
| - image-captioning | |
| - endpoints-template | |
| license: bsd-3-clause | |
| library_name: generic | |
| ## salesforce/BLIP for 🤗Inference endpoint deployment. | |
| ### Expected payload: | |
| Curl: | |
| ```json | |
| curl URL \ | |
| -X POST \ | |
| --data-binary @car.png \ | |
| -H "Content-Type: image/png" | |
| ``` | |
| Python: | |
| ```python | |
| requests.post(ENDPOINT_URL, headers={"Content-Type": "image/png"}, data=open("car.png", 'rb').read()).json() | |
| ``` | |