From 13593ba16b0ea0950ca819edb6b315b8a72d21a1 Mon Sep 17 00:00:00 2001 From: Dinesh Chitlangia Date: Thu, 7 Sep 2023 23:51:39 -0400 Subject: [PATCH 1/2] Fix typo in chapter4/3.mdx Fixes typos in English text --- chapters/en/chapter4/3.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapters/en/chapter4/3.mdx b/chapters/en/chapter4/3.mdx index 6b27777f4..2998f89ae 100644 --- a/chapters/en/chapter4/3.mdx +++ b/chapters/en/chapter4/3.mdx @@ -105,7 +105,7 @@ callback = PushToHubCallback( Then you should add `callbacks=[callback]` in your call to `model.fit()`. The callback will then upload your model to the Hub each time it is saved (here every epoch) in a repository in your namespace. That repository will be named like the output directory you picked (here `bert-finetuned-mrpc`) but you can choose a different name with `hub_model_id = "a_different_name"`. -To upload you model to an organization you are a member of, just pass it with `hub_model_id = "my_organization/my_repo_name"`. +To upload your model to an organization you are a member of, just pass it with `hub_model_id = "my_organization/my_repo_name"`. {/if} @@ -190,7 +190,7 @@ The `huggingface_hub` Python library is a package which offers a set of tools fo getting information about repositories on the hub and managing them. It provides simple APIs that work on top of git to manage those repositories' content and to integrate the Hub in your projects and libraries. -Similarly to using the `push_to_hub` API, this will require you to have your API token saved in your cache. In order to do this, you will need to use the `login` command from the CLI, as mentioned in the previous section (again, make sure to prepend these commands with the `!` character if running in Google Colab): +Similarly to use the `push_to_hub` API, this will require you to have your API token saved in your cache. In order to do this, you will need to use the `login` command from the CLI, as mentioned in the previous section (again, make sure to prepend these commands with the `!` character if running in Google Colab): ```bash huggingface-cli login @@ -221,7 +221,7 @@ from huggingface_hub import ( ``` -Additionally, it offers the very powerful `Repository` class to manage a local repository. We will explore these methods and that class in the next few section to understand how to leverage them. +Additionally, it offers the very powerful `Repository` class to manage a local repository. We will explore these methods and that class in the next few sections to understand how to leverage them. The `create_repo` method can be used to create a new repository on the hub: From d743f75ecf794eb0ffedd6fd30e40e94d6e3f7f5 Mon Sep 17 00:00:00 2001 From: Dinesh Chitlangia Date: Thu, 7 Sep 2023 23:54:02 -0400 Subject: [PATCH 2/2] Update 3.mdx Fixed typo --- chapters/en/chapter4/3.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/en/chapter4/3.mdx b/chapters/en/chapter4/3.mdx index 2998f89ae..2e7c66eb7 100644 --- a/chapters/en/chapter4/3.mdx +++ b/chapters/en/chapter4/3.mdx @@ -190,7 +190,7 @@ The `huggingface_hub` Python library is a package which offers a set of tools fo getting information about repositories on the hub and managing them. It provides simple APIs that work on top of git to manage those repositories' content and to integrate the Hub in your projects and libraries. -Similarly to use the `push_to_hub` API, this will require you to have your API token saved in your cache. In order to do this, you will need to use the `login` command from the CLI, as mentioned in the previous section (again, make sure to prepend these commands with the `!` character if running in Google Colab): +Similarly, to use the `push_to_hub` API, this will require you to have your API token saved in your cache. In order to do this, you will need to use the `login` command from the CLI, as mentioned in the previous section (again, make sure to prepend these commands with the `!` character if running in Google Colab): ```bash huggingface-cli login