Skip to content

Commit ca4e42f

Browse files
authored
Update paths to images in snippets to be more neutral. (#1546)
1 parent cc24443 commit ca4e42f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,12 +1283,14 @@ 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/Narsil/image_dummy/raw/main/parrots.png",',
1286+
' "https://huggingface.co/datasets/huggingface/documentation-images/raw/main/hub/parrots.png",',
12871287
' candidate_labels=["animals", "humans", "landscape"],',
12881288
")"
12891289
);
12901290
} else if (model.pipeline_tag === "image-classification") {
1291-
pipelineSnippet.push('pipe("https://huggingface.co/datasets/Narsil/image_dummy/raw/main/parrots.png")');
1291+
pipelineSnippet.push(
1292+
'pipe("https://huggingface.co/datasets/huggingface/documentation-images/raw/main/hub/parrots.png")'
1293+
);
12921294
}
12931295

12941296
return [pipelineSnippet.join("\n"), autoSnippet];

0 commit comments

Comments
 (0)