From c24d7201c5b8754fa4c2100894a3426ffd04eba2 Mon Sep 17 00:00:00 2001 From: githubnemo Date: Fri, 5 Jul 2024 16:32:23 +0200 Subject: [PATCH] Fix link to model widgets enable section (#1327) There was a superfluous `.md` extension in the link which leads the user to a 404 page. --- docs/hub/model-cards.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hub/model-cards.md b/docs/hub/model-cards.md index c730d505e..0f4683f94 100644 --- a/docs/hub/model-cards.md +++ b/docs/hub/model-cards.md @@ -168,7 +168,7 @@ datasets: ### Specifying a task (`pipeline_tag`) -You can specify the `pipeline_tag` in the model card metadata. The `pipeline_tag` indicates the type of task the model is intended for. This tag will be displayed on the model page and users can filter models on the Hub by task. This tag is also used to determine which [widget](./models-widgets.md#enabling-a-widget) to use for the model and which APIs to use under the hood. +You can specify the `pipeline_tag` in the model card metadata. The `pipeline_tag` indicates the type of task the model is intended for. This tag will be displayed on the model page and users can filter models on the Hub by task. This tag is also used to determine which [widget](./models-widgets#enabling-a-widget) to use for the model and which APIs to use under the hood. For `transformers` models, the pipeline tag is automatically inferred from the model's `config.json` file but you can override it in the model card metadata if required. Editing this field in the metadata UI will ensure that the pipeline tag is valid. Some other libraries with Hub integration will also automatically add the pipeline tag to the model card metadata.