File size: 797 Bytes
6617b85
 
 
 
 
0a7689a
bafe8b7
66e86d9
bab69ce
6617b85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
tags:
- vision
- zero-shot-image-classification
- endpoints-template
inference: true
pipeline_tag: zero-shot-image-classification
base_model: openai/clip-vit-large-patch14
library_name: generic
---

# Fork of [openai/clip-vit-base-patch32](https://huggingface.co/openai/clip-vit-base-patch32) for a `zero-sho-image-classification` Inference endpoint.

This repository implements a `custom` task for `zero-shot-image-classification` for 🤗 Inference Endpoints. The code for the customized 
pipeline is in the handler.py.

To use deploy this model an Inference Endpoint you have to select `Custom` as task to use the `handler.py` file. 

### expected Request payload

```json
{
  "image": encoded_image,
  "parameters": {
    "candidate_labels": "green, yellow, blue, white, silver"
  }
}
```