# How to push language and task dataset\_info?

**URL:** <https://discuss.huggingface.co/t/how-to-push-language-and-task-dataset-info/61037>\
**Category:** 🤗Datasets\
**Created:** [November 4, 2023, 1:42pm UTC](https://discuss.huggingface.co/t/how-to-push-language-and-task-dataset-info/61037 "2023-11-04T13:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![celsowm](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/celsowm/32/50357_2.png) [@celsowm](https://discuss.huggingface.co/u/celsowm)\
**Post date:** [November 4, 2023, 1:42pm UTC](https://discuss.huggingface.co/t/how-to-push-language-and-task-dataset-info/61037/1 "2023-11-04T13:42:08Z")

</div>

Hi,  
I would like to update, via python, informations like languages and task

```python
dataset_info = DatasetInfo (
    description="Notícias da cnnbrasil.com em pt-br",
    #languages=["pt-br"], # Idiomas do conjunto de dados
    #tasks={"classification", "ner", "summarization"} # Tarefas suportadas
)

dataset = Dataset.from_json(file_name)
dataset_name = "cnn_news_ptbr"

dataset.push_to_hub(dataset_name, token = token)

```

If I tried those params on DatasetInfo they dont exist, how can I do that?

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](https://discuss.huggingface.co/u/mariosasko)\
**Post date:** [November 6, 2023, 1:23pm UTC](https://discuss.huggingface.co/t/how-to-push-language-and-task-dataset-info/61037/2 "2023-11-06T13:23:40Z")

</div>

Hi! We now store this metadata in the README’s YAML block. You can find more information in the docs [here](https://huggingface.co/docs/hub/datasets-cards). And to update them programmatically, you can use `huggingface_hub`’s [RepoCard API](https://huggingface.co/docs/huggingface_hub/package_reference/cards).
