Skip to content

Commit 26140e9

Browse files
Update API inference documentation (automated) (#1492)
Co-authored-by: hanouticelina <[email protected]>
1 parent 296b2ea commit 26140e9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/api-inference/tasks/zero-shot-classification.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/
100100

101101
| Payload | | |
102102
| :--- | :--- | :--- |
103-
| **inputs*** | _object_ | The input text data, with candidate labels |
104-
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text*** | _string_ | The text to classify |
105-
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;candidateLabels*** | _string[]_ | The set of possible class labels to classify the text into. |
106-
| **parameters** | _object_ | Additional inference parameters for Zero Shot Classification |
107-
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hypothesis_template** | _string_ | The sentence used in conjunction with candidateLabels to attempt the text classification by replacing the placeholder with the candidate labels. |
103+
| **inputs*** | _string_ | The text to classify |
104+
| **parameters*** | _object_ | Additional inference parameters for Zero Shot Classification |
105+
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;candidate_labels*** | _string[]_ | The set of possible class labels to classify the text into. |
106+
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hypothesis_template** | _string_ | The sentence used in conjunction with `candidate_labels` to attempt the text classification by replacing the placeholder with the candidate labels. |
108107
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;multi_label** | _boolean_ | Whether multiple candidate labels can be true. If false, the scores are normalized such that the sum of the label likelihoods for each sequence is 1. If true, the labels are considered independent and probabilities are normalized for each candidate. |
109108

110109

0 commit comments

Comments
 (0)