witron-image-captioning

作者 SlowPacer · 下载 0 · 点赞 0 · 更新 2023-11-02

image-to-text image-captioning endpoints-template

Image captioning

For deployment as an inference endpoint, using a Custom task type – a fixed version of this repo (updated to file input of test your endpoint!)

Request payload

{
  "inputs": ["/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAMCAgICAgMC...."], // base64-encoded image
}

Response payload

{
  "captions": ["inferred caption for image"]
}