From 6a495cae0090307198131c07cd4f3f1e9b38b4e6 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Thu, 25 Jun 2020 15:58:25 +0200 Subject: [PATCH] [model_cards] Example of how to specify inputs for the widget --- .../distilbert-base-uncased-distilled-squad-README.md | 5 +++++ model_cards/julien-c/EsperBERTo-small-pos/README.md | 2 ++ model_cards/julien-c/EsperBERTo-small/README.md | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/model_cards/distilbert-base-uncased-distilled-squad-README.md b/model_cards/distilbert-base-uncased-distilled-squad-README.md index 0c980357ce..ba478c94cd 100644 --- a/model_cards/distilbert-base-uncased-distilled-squad-README.md +++ b/model_cards/distilbert-base-uncased-distilled-squad-README.md @@ -1,4 +1,9 @@ --- datasets: - squad +widget: +- text: "Which name is also used to describe the Amazon rainforest in English?" + context: "The Amazon rainforest (Portuguese: Floresta Amazônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain \"Amazonas\" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species." +- text: "How many square kilometers of rainforest is covered in the basin?" + context: "The Amazon rainforest (Portuguese: Floresta Amazônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain \"Amazonas\" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species." --- diff --git a/model_cards/julien-c/EsperBERTo-small-pos/README.md b/model_cards/julien-c/EsperBERTo-small-pos/README.md index 700ae9a4c3..cc7aab1b4a 100644 --- a/model_cards/julien-c/EsperBERTo-small-pos/README.md +++ b/model_cards/julien-c/EsperBERTo-small-pos/README.md @@ -1,6 +1,8 @@ --- language: esperanto thumbnail: https://huggingface.co/blog/assets/EsperBERTo-thumbnail-v2.png +widget: +- text: "Mi estas viro kej estas tago varma." --- # EsperBERTo: RoBERTa-like Language model trained on Esperanto diff --git a/model_cards/julien-c/EsperBERTo-small/README.md b/model_cards/julien-c/EsperBERTo-small/README.md index 5f8383d212..ef3a72e289 100644 --- a/model_cards/julien-c/EsperBERTo-small/README.md +++ b/model_cards/julien-c/EsperBERTo-small/README.md @@ -1,6 +1,10 @@ --- language: esperanto thumbnail: https://huggingface.co/blog/assets/EsperBERTo-thumbnail-v2.png +widget: +- text: "Jen la komenco de bela ." +- text: "Uno du " +- text: "Jen finiĝas bela ." --- # EsperBERTo: RoBERTa-like Language model trained on Esperanto