Skip to content

Commit bef134a

Browse files
authored
Fix URL (#1547)
Ref: #1546
1 parent ca4e42f commit bef134a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,13 +1283,13 @@ export const transformers = (model: ModelData): string[] => {
12831283
} else if (model.pipeline_tag === "zero-shot-image-classification") {
12841284
pipelineSnippet.push(
12851285
"pipe(",
1286-
' "https://huggingface.co/datasets/huggingface/documentation-images/raw/main/hub/parrots.png",',
1286+
' "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",',
12871287
' candidate_labels=["animals", "humans", "landscape"],',
12881288
")"
12891289
);
12901290
} else if (model.pipeline_tag === "image-classification") {
12911291
pipelineSnippet.push(
1292-
'pipe("https://huggingface.co/datasets/huggingface/documentation-images/raw/main/hub/parrots.png")'
1292+
'pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")'
12931293
);
12941294
}
12951295

0 commit comments

Comments
 (0)