From 373d0d99858c60b78c90fc155e96c2cc9c95b432 Mon Sep 17 00:00:00 2001 From: Aleksandar Ivanovski Date: Tue, 19 Sep 2023 00:45:12 +0200 Subject: [PATCH] [docs] Fix model reference in zero shot image classification example (#26206) --- docs/source/en/tasks/zero_shot_image_classification.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/tasks/zero_shot_image_classification.md b/docs/source/en/tasks/zero_shot_image_classification.md index 3177255b1c..45775d40ca 100644 --- a/docs/source/en/tasks/zero_shot_image_classification.md +++ b/docs/source/en/tasks/zero_shot_image_classification.md @@ -75,7 +75,7 @@ include a local path to an image or an image url. The candidate labels can be simple words like in this example, or more descriptive. ```py ->>> predictions = classifier(image, candidate_labels=["fox", "bear", "seagull", "owl"]) +>>> predictions = detector(image, candidate_labels=["fox", "bear", "seagull", "owl"]) >>> predictions [{'score': 0.9996670484542847, 'label': 'owl'}, {'score': 0.000199399160919711, 'label': 'seagull'},