File size: 538 Bytes
5318d99 12d3cce d2d706d 5318d99 12d3cce 5318d99 12d3cce 5318d99 12d3cce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
---
tags:
- image-to-text
- image-captioning
- endpoints-template
license: bsd-3-clause
library_name: generic
---
# Image captioning
For deployment as an inference endpoint, using a Custom task type – a fixed version of [this repo](https://huggingface.co/CiaranMn/blip-captioning) (updated to file input of test your endpoint!)
## Request payload
```json
{
"inputs": ["/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAMCAgICAgMC...."], // base64-encoded image
}
```
## Response payload
```json
{
"captions": ["inferred caption for image"]
}
``` |