File size: 785 Bytes
7a5518e
20a4aae
 
 
 
7a5518e
 
20a4aae
 
 
 
aa6f111
20a4aae
255ca59
 
20a4aae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
30
31
32
33
34
35
36
37
---
tags:
- image-to-text
- image-captioning
- endpoints-template
license: apache-2.0
---

# Fork of [salesforce/BLIP](https://github.com/salesforce/BLIP) for a `image-captioning` task on 🤗Inference endpoint.


This repo uses a [custom handler](https://huggingface.co/docs/inference-endpoints/guides/custom_handler) that allows an Inference Endpoint to accept an array of URLs to be used by the BLIP model. 

This repo also expands on [florentgbelidji/blip_captioning](https://huggingface.co/florentgbelidji/blip_captioning)

## Expected Payload

```json
{
  "inputs": [
    "https://url.to/image_1.jpg",
    "https://url.to/image_2.jpg",
  ]
}
```

## Response Payload

```json
{
  "captions": [
    "a caption for the first image", 
    "a caption for the second image"
  ]
}
```