From 80352561fae571c8c05b70ccfda2b8c1d0a93a5f Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:49:24 +0200 Subject: [PATCH] Fix typos (#2634) * fix typos * fix typo * fix typos * fix typo * fix typos * fix typo * fix typo * fix typo * fix typo * fix typo * fix typos * fix typos * fix typos --- docs/source/cn/concepts/git_vs_http.md | 2 +- docs/source/cn/guides/repository.md | 2 +- docs/source/cn/index.md | 2 +- docs/source/cn/installation.md | 2 +- docs/source/cn/quick-start.md | 2 +- docs/source/de/concepts/git_vs_http.md | 2 +- docs/source/de/guides/community.md | 2 +- docs/source/de/guides/download.md | 2 +- docs/source/de/guides/hf_file_system.md | 2 +- docs/source/de/guides/inference.md | 2 +- docs/source/de/guides/integrations.md | 2 +- docs/source/de/guides/manage-cache.md | 2 +- docs/source/de/guides/manage-spaces.md | 2 +- docs/source/de/guides/model-cards.md | 2 +- docs/source/de/guides/overview.md | 2 +- docs/source/de/guides/repository.md | 2 +- docs/source/de/guides/search.md | 2 +- docs/source/de/guides/upload.md | 2 +- docs/source/de/guides/webhooks_server.md | 2 +- docs/source/de/index.md | 2 +- docs/source/de/installation.md | 2 +- docs/source/de/quick-start.md | 2 +- docs/source/en/concepts/git_vs_http.md | 4 ++-- docs/source/en/guides/cli.md | 4 ++-- docs/source/en/guides/collections.md | 6 +++--- docs/source/en/guides/community.md | 4 ++-- docs/source/en/guides/download.md | 2 +- docs/source/en/guides/hf_file_system.md | 4 ++-- docs/source/en/guides/inference.md | 10 +++++----- docs/source/en/guides/integrations.md | 6 +++--- docs/source/en/guides/manage-cache.md | 6 +++--- docs/source/en/guides/manage-spaces.md | 2 +- docs/source/en/guides/model-cards.md | 2 +- docs/source/en/guides/overview.md | 2 +- docs/source/en/guides/repository.md | 2 +- docs/source/en/guides/search.md | 2 +- docs/source/en/guides/upload.md | 2 +- docs/source/en/guides/webhooks.md | 2 +- docs/source/en/index.md | 2 +- docs/source/en/installation.md | 4 ++-- docs/source/en/package_reference/authentication.md | 2 +- docs/source/en/package_reference/cache.md | 2 +- docs/source/en/package_reference/cards.md | 2 +- docs/source/en/package_reference/collections.md | 2 +- docs/source/en/package_reference/community.md | 2 +- .../en/package_reference/environment_variables.md | 2 +- docs/source/en/package_reference/file_download.md | 2 +- docs/source/en/package_reference/hf_api.md | 2 +- docs/source/en/package_reference/hf_file_system.md | 2 +- docs/source/en/package_reference/inference_client.md | 2 +- docs/source/en/package_reference/inference_types.md | 2 +- docs/source/en/package_reference/mixins.md | 2 +- docs/source/en/package_reference/overview.md | 2 +- docs/source/en/package_reference/repository.md | 2 +- docs/source/en/package_reference/serialization.md | 2 +- docs/source/en/package_reference/space_runtime.md | 2 +- docs/source/en/package_reference/tensorboard.md | 2 +- docs/source/en/package_reference/utilities.md | 2 +- docs/source/en/package_reference/webhooks_server.md | 2 +- docs/source/en/quick-start.md | 2 +- docs/source/fr/concepts/git_vs_http.md | 2 +- docs/source/fr/guides/integrations.md | 2 +- docs/source/fr/index.md | 2 +- docs/source/fr/installation.md | 2 +- docs/source/fr/quick-start.md | 2 +- docs/source/hi/index.md | 2 +- docs/source/hi/installation.md | 2 +- docs/source/hi/quick-start.md | 2 +- docs/source/ko/concepts/git_vs_http.md | 2 +- docs/source/ko/guides/cli.md | 2 +- docs/source/ko/guides/collections.md | 2 +- docs/source/ko/guides/community.md | 2 +- docs/source/ko/guides/download.md | 2 +- docs/source/ko/guides/hf_file_system.md | 2 +- docs/source/ko/guides/inference.md | 2 +- docs/source/ko/guides/integrations.md | 2 +- docs/source/ko/guides/manage-cache.md | 2 +- docs/source/ko/guides/manage-spaces.md | 2 +- docs/source/ko/guides/model-cards.md | 2 +- docs/source/ko/guides/overview.md | 4 ++-- docs/source/ko/guides/repository.md | 2 +- docs/source/ko/guides/search.md | 2 +- docs/source/ko/guides/upload.md | 2 +- docs/source/ko/guides/webhooks_server.md | 2 +- docs/source/ko/index.md | 2 +- docs/source/ko/installation.md | 2 +- docs/source/ko/package_reference/cache.md | 2 +- docs/source/ko/package_reference/collections.md | 2 +- docs/source/ko/package_reference/community.md | 2 +- .../ko/package_reference/environment_variables.md | 2 +- docs/source/ko/package_reference/file_download.md | 2 +- docs/source/ko/package_reference/hf_api.md | 2 +- docs/source/ko/package_reference/hf_file_system.md | 2 +- docs/source/ko/package_reference/inference_client.md | 2 +- docs/source/ko/package_reference/inference_types.md | 2 +- docs/source/ko/package_reference/login.md | 2 +- docs/source/ko/package_reference/mixins.md | 2 +- docs/source/ko/package_reference/overview.md | 2 +- docs/source/ko/package_reference/repository.md | 2 +- docs/source/ko/package_reference/serialization.md | 2 +- docs/source/ko/package_reference/space_runtime.md | 2 +- docs/source/ko/package_reference/tensorboard.md | 2 +- docs/source/ko/package_reference/utilities.md | 2 +- docs/source/ko/package_reference/webhooks_server.md | 2 +- docs/source/ko/quick-start.md | 2 +- docs/source/tm/index.md | 2 +- src/huggingface_hub/inference/_common.py | 4 ++-- utils/generate_async_inference_client.py | 2 +- utils/generate_inference_types.py | 4 ++-- 109 files changed, 127 insertions(+), 127 deletions(-) diff --git a/docs/source/cn/concepts/git_vs_http.md b/docs/source/cn/concepts/git_vs_http.md index 8509309b76..b582b5f991 100644 --- a/docs/source/cn/concepts/git_vs_http.md +++ b/docs/source/cn/concepts/git_vs_http.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/cn/guides/repository.md b/docs/source/cn/guides/repository.md index aa1f3b3dff..0b5b294d45 100644 --- a/docs/source/cn/guides/repository.md +++ b/docs/source/cn/guides/repository.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/cn/index.md b/docs/source/cn/index.md index 1944c08f48..9a7d8db6a8 100644 --- a/docs/source/cn/index.md +++ b/docs/source/cn/index.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/cn/installation.md b/docs/source/cn/installation.md index c46de7ce52..2b3003e977 100644 --- a/docs/source/cn/installation.md +++ b/docs/source/cn/installation.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/cn/quick-start.md b/docs/source/cn/quick-start.md index 861973a6f7..4a4a809a79 100644 --- a/docs/source/cn/quick-start.md +++ b/docs/source/cn/quick-start.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/concepts/git_vs_http.md b/docs/source/de/concepts/git_vs_http.md index 799cb974b2..978123762a 100644 --- a/docs/source/de/concepts/git_vs_http.md +++ b/docs/source/de/concepts/git_vs_http.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/community.md b/docs/source/de/guides/community.md index a2026436c2..c492330f5a 100644 --- a/docs/source/de/guides/community.md +++ b/docs/source/de/guides/community.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/download.md b/docs/source/de/guides/download.md index afd2d9d4f7..ec195d4035 100644 --- a/docs/source/de/guides/download.md +++ b/docs/source/de/guides/download.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/hf_file_system.md b/docs/source/de/guides/hf_file_system.md index 6afd8a705c..e33cc97cd4 100644 --- a/docs/source/de/guides/hf_file_system.md +++ b/docs/source/de/guides/hf_file_system.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/inference.md b/docs/source/de/guides/inference.md index dc6e35921f..e34103ac34 100644 --- a/docs/source/de/guides/inference.md +++ b/docs/source/de/guides/inference.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/integrations.md b/docs/source/de/guides/integrations.md index 3482ae6eac..d8f036ec4d 100644 --- a/docs/source/de/guides/integrations.md +++ b/docs/source/de/guides/integrations.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/manage-cache.md b/docs/source/de/guides/manage-cache.md index 2f8c029f8e..779c34b683 100644 --- a/docs/source/de/guides/manage-cache.md +++ b/docs/source/de/guides/manage-cache.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/manage-spaces.md b/docs/source/de/guides/manage-spaces.md index 3caab0f5ed..57a45e9e11 100644 --- a/docs/source/de/guides/manage-spaces.md +++ b/docs/source/de/guides/manage-spaces.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/model-cards.md b/docs/source/de/guides/model-cards.md index bcba30866c..01858c41b8 100644 --- a/docs/source/de/guides/model-cards.md +++ b/docs/source/de/guides/model-cards.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/overview.md b/docs/source/de/guides/overview.md index 7f761839a1..785689b989 100644 --- a/docs/source/de/guides/overview.md +++ b/docs/source/de/guides/overview.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/repository.md b/docs/source/de/guides/repository.md index b2f492717e..6e4187ae8e 100644 --- a/docs/source/de/guides/repository.md +++ b/docs/source/de/guides/repository.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/search.md b/docs/source/de/guides/search.md index 0cafd4e7b3..c40d91b9b8 100644 --- a/docs/source/de/guides/search.md +++ b/docs/source/de/guides/search.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/upload.md b/docs/source/de/guides/upload.md index e591afcb52..38db944c7e 100644 --- a/docs/source/de/guides/upload.md +++ b/docs/source/de/guides/upload.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/guides/webhooks_server.md b/docs/source/de/guides/webhooks_server.md index 223ff8ca31..d2214d6b72 100644 --- a/docs/source/de/guides/webhooks_server.md +++ b/docs/source/de/guides/webhooks_server.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/index.md b/docs/source/de/index.md index 320f098ab0..3514dcf384 100644 --- a/docs/source/de/index.md +++ b/docs/source/de/index.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/installation.md b/docs/source/de/installation.md index 0a00c15d10..8cb6ae3f31 100644 --- a/docs/source/de/installation.md +++ b/docs/source/de/installation.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/de/quick-start.md b/docs/source/de/quick-start.md index f78fa55e75..83ce0a24e0 100644 --- a/docs/source/de/quick-start.md +++ b/docs/source/de/quick-start.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/concepts/git_vs_http.md b/docs/source/en/concepts/git_vs_http.md index f581f1678b..e6eb755af5 100644 --- a/docs/source/en/concepts/git_vs_http.md +++ b/docs/source/en/concepts/git_vs_http.md @@ -1,11 +1,11 @@ - # Git vs HTTP paradigm The `huggingface_hub` library is a library for interacting with the Hugging Face Hub, which is a -collections of git-based repositories (models, datasets or Spaces). There are two main +collection of git-based repositories (models, datasets or Spaces). There are two main ways to access the Hub using `huggingface_hub`. The first approach, the so-called "git-based" approach, is led by the [`Repository`] class. diff --git a/docs/source/en/guides/cli.md b/docs/source/en/guides/cli.md index 9fb355ae9d..35dc861ab4 100644 --- a/docs/source/en/guides/cli.md +++ b/docs/source/en/guides/cli.md @@ -1,4 +1,4 @@ - @@ -139,7 +139,7 @@ If you are not logged in, an error message will be printed. ## huggingface-cli logout -This commands logs you out. In practice, it will delete all tokens stored on your machine. If you want to remove a specific token, you can specify the token name as an argument. +This command logs you out. In practice, it will delete all tokens stored on your machine. If you want to remove a specific token, you can specify the token name as an argument. This command will not log you out if you are logged in using the `HF_TOKEN` environment variable (see [reference](../package_reference/environment_variables#hftoken)). If that is the case, you must unset the environment variable in your machine configuration. diff --git a/docs/source/en/guides/collections.md b/docs/source/en/guides/collections.md index 1fc1cd8da8..2a70f1dd94 100644 --- a/docs/source/en/guides/collections.md +++ b/docs/source/en/guides/collections.md @@ -1,4 +1,4 @@ - @@ -6,7 +6,7 @@ rendered properly in your Markdown viewer. A collection is a group of related items on the Hub (models, datasets, Spaces, papers) that are organized together on the same page. Collections are useful for creating your own portfolio, bookmarking content in categories, or presenting a curated list of items you want to share. Check out this [guide](https://huggingface.co/docs/hub/collections) to understand in more detail what collections are and how they look on the Hub. -You can directly manage collections in the browser, but in this guide, we will focus on how to manage it programmatically. +You can directly manage collections in the browser, but in this guide, we will focus on how to manage them programmatically. ## Fetch a collection @@ -115,7 +115,7 @@ Now that we know how to get a [`Collection`], let's create our own! Use [`create ... ) ``` -It will return a [`Collection`] object with the high-level metadata (title, description, owner, etc.) and an empty list of items. You will now be able to refer to this collection using it's `slug`. +It will return a [`Collection`] object with the high-level metadata (title, description, owner, etc.) and an empty list of items. You will now be able to refer to this collection using its `slug`. ```py >>> collection.slug diff --git a/docs/source/en/guides/community.md b/docs/source/en/guides/community.md index df4a2a28bb..8f55a761c4 100644 --- a/docs/source/en/guides/community.md +++ b/docs/source/en/guides/community.md @@ -1,4 +1,4 @@ - @@ -80,7 +80,7 @@ with more detailed information about the Discussion or Pull Request. Information and renames of the Discussion via [`DiscussionWithDetails.events`]. In case of a Pull Request, you can retrieve the raw git diff with [`DiscussionWithDetails.diff`]. All the commits of the -Pull Request are listed in [`DiscussionWithDetails.events`]. +Pull Requests are listed in [`DiscussionWithDetails.events`]. ## Create and edit a Discussion or Pull Request programmatically diff --git a/docs/source/en/guides/download.md b/docs/source/en/guides/download.md index 1eb8250d20..254c72d165 100644 --- a/docs/source/en/guides/download.md +++ b/docs/source/en/guides/download.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/guides/hf_file_system.md b/docs/source/en/guides/hf_file_system.md index 504a0db836..d0b96a2bd4 100644 --- a/docs/source/en/guides/hf_file_system.md +++ b/docs/source/en/guides/hf_file_system.md @@ -1,10 +1,10 @@ - # Interact with the Hub through the Filesystem API -In addition to the [`HfApi`], the `huggingface_hub` library provides [`HfFileSystem`], a pythonic [fsspec-compatible](https://filesystem-spec.readthedocs.io/en/latest/) file interface to the Hugging Face Hub. The [`HfFileSystem`] builds of top of the [`HfApi`] and offers typical filesystem style operations like `cp`, `mv`, `ls`, `du`, `glob`, `get_file`, and `put_file`. +In addition to the [`HfApi`], the `huggingface_hub` library provides [`HfFileSystem`], a pythonic [fsspec-compatible](https://filesystem-spec.readthedocs.io/en/latest/) file interface to the Hugging Face Hub. The [`HfFileSystem`] builds on top of the [`HfApi`] and offers typical filesystem style operations like `cp`, `mv`, `ls`, `du`, `glob`, `get_file`, and `put_file`. ## Usage diff --git a/docs/source/en/guides/inference.md b/docs/source/en/guides/inference.md index 92207658cd..07a5ca5014 100644 --- a/docs/source/en/guides/inference.md +++ b/docs/source/en/guides/inference.md @@ -1,4 +1,4 @@ - @@ -77,7 +77,7 @@ ChatCompletionOutput( ) ``` -In this example, we specified which model we want to use (`"meta-llama/Meta-Llama-3-8B-Instruct"`). You can find a list of compatible models [on this page](https://huggingface.co/models?other=conversational&sort=likes). We then gave a list of messages to complete (here, a single question) and passed an additional parameter to API (`max_token=100`). The output is a `ChatCompletionOutput` object that follows the OpenAI specification. The generated content can be access with `output.choices[0].message.content`. For more details, check out the [`~InferenceClient.chat_completion`] documentation. +In this example, we specified which model we want to use (`"meta-llama/Meta-Llama-3-8B-Instruct"`). You can find a list of compatible models [on this page](https://huggingface.co/models?other=conversational&sort=likes). We then gave a list of messages to complete (here, a single question) and passed an additional parameter to API (`max_token=100`). The output is a `ChatCompletionOutput` object that follows the OpenAI specification. The generated content can be accessed with `output.choices[0].message.content`. For more details, check out the [`~InferenceClient.chat_completion`] documentation. @@ -176,7 +176,7 @@ for chunk in output: print(chunk.choices[0].delta.content) ``` -And that's it! The only required changes are to replace `from openai import OpenAI` by `from huggingface_hub import InferenceClient` and `client = OpenAI(...)` by `client = InferenceClient(...)`. You can chose any LLM model from the Hugging Face Hub by passing its model id as `model` parameter. [Here is a list](https://huggingface.co/models?pipeline_tag=text-generation&other=conversational,text-generation-inference&sort=trending) of supported models. For authentication, you should pass a valid [User Access Token](https://huggingface.co/settings/tokens) as `api_key` or authenticate using `huggingface_hub` (see the [authentication guide](https://huggingface.co/docs/huggingface_hub/quick-start#authentication)). +And that's it! The only required changes are to replace `from openai import OpenAI` by `from huggingface_hub import InferenceClient` and `client = OpenAI(...)` by `client = InferenceClient(...)`. You can choose any LLM model from the Hugging Face Hub by passing its model id as `model` parameter. [Here is a list](https://huggingface.co/models?pipeline_tag=text-generation&other=conversational,text-generation-inference&sort=trending) of supported models. For authentication, you should pass a valid [User Access Token](https://huggingface.co/settings/tokens) as `api_key` or authenticate using `huggingface_hub` (see the [authentication guide](https://huggingface.co/docs/huggingface_hub/quick-start#authentication)). All input parameters and output format are strictly the same. In particular, you can pass `stream=True` to receive tokens as they are generated. You can also use the [`AsyncInferenceClient`] to run inference using `asyncio`: @@ -201,7 +201,7 @@ asyncio.run(main()) ``` You might wonder why using [`InferenceClient`] instead of OpenAI's client? There are a few reasons for that: -1. [`InferenceClient`] is configured for Hugging Face services. You don't need to provide a `base_url` to run models on the serverless Inference API. You also don't need to provide a `token` or `api_key` if you machine is already correctly logged in. +1. [`InferenceClient`] is configured for Hugging Face services. You don't need to provide a `base_url` to run models on the serverless Inference API. You also don't need to provide a `token` or `api_key` if your machine is already correctly logged in. 2. [`InferenceClient`] is tailored for both Text-Generation-Inference (TGI) and `transformers` frameworks, meaning you are assured it will always be on-par with the latest updates. 3. [`InferenceClient`] is integrated with our Inference Endpoints service, making it easier to launch an Inference Endpoint, check its status and run inference on it. Check out the [Inference Endpoints](./inference_endpoints.md) guide for more details. @@ -285,7 +285,7 @@ After installation all async API endpoints are available via [`AsyncInferenceCli strictly the same as the sync-only version. ```py -# Code must be run in a asyncio concurrent context. +# Code must be run in an asyncio concurrent context. # $ python -m asyncio >>> from huggingface_hub import AsyncInferenceClient >>> client = AsyncInferenceClient() diff --git a/docs/source/en/guides/integrations.md b/docs/source/en/guides/integrations.md index 1b7a8080c2..26018356c5 100644 --- a/docs/source/en/guides/integrations.md +++ b/docs/source/en/guides/integrations.md @@ -1,4 +1,4 @@ - @@ -39,7 +39,7 @@ Implementation can differ between libraries, but the workflow is often similar. ### from_pretrained -This is how a `from_pretrained` method usually look like: +This is how a `from_pretrained` method usually looks like: ```python def from_pretrained(model_id: str) -> MyModelClass: @@ -390,7 +390,7 @@ class VoiceCraft(nn.Module): ... ``` -One solution can be to update the `__init__` signature to `def __init__(self, pattern: str, hidden_size: int)` and update all snippets that instantiates your class. This is a perfectly valid way to fix it but it might break downstream applications using your library. +One solution can be to update the `__init__` signature to `def __init__(self, pattern: str, hidden_size: int)` and update all snippets that instantiate your class. This is a perfectly valid way to fix it but it might break downstream applications using your library. Another solution is to provide a simple encoder/decoder to convert `argparse.Namespace` to a dictionary. diff --git a/docs/source/en/guides/manage-cache.md b/docs/source/en/guides/manage-cache.md index aad3be96c8..521a50b21f 100644 --- a/docs/source/en/guides/manage-cache.md +++ b/docs/source/en/guides/manage-cache.md @@ -1,4 +1,4 @@ - @@ -101,13 +101,13 @@ on the Hub. Its structure is the same as the `snapshots` folder with 1 subfolder Unlike the `snapshots` folder, files are simple empty files (no symlinks). In this example, the file `"config_that_does_not_exist.json"` does not exist on the Hub for the revision `"aaaaaa"`. -As it only stores empty files, this folder is neglectable is term of disk usage. +As it only stores empty files, this folder is neglectable in term of disk usage. So now you might wonder, why is this information even relevant? In some cases, a framework tries to load optional files for a model. Saving the non-existence of optional files makes it faster to load a model as it saves 1 HTTP call per possible optional file. This is for example the case in `transformers` where each tokenizer can support additional files. -The first time you load the tokenizer on your machine, it will cache which optional files exists (and +The first time you load the tokenizer on your machine, it will cache which optional files exist (and which doesn't) to make the loading time faster for the next initializations. To test if a file is cached locally (without making any HTTP request), you can use the [`try_to_load_from_cache`] diff --git a/docs/source/en/guides/manage-spaces.md b/docs/source/en/guides/manage-spaces.md index 898c8b1fb5..8890101fbb 100644 --- a/docs/source/en/guides/manage-spaces.md +++ b/docs/source/en/guides/manage-spaces.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/guides/model-cards.md b/docs/source/en/guides/model-cards.md index e1638e3f3a..0c9f52a2cc 100644 --- a/docs/source/en/guides/model-cards.md +++ b/docs/source/en/guides/model-cards.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/guides/overview.md b/docs/source/en/guides/overview.md index dd2813ea8d..501fa78d37 100644 --- a/docs/source/en/guides/overview.md +++ b/docs/source/en/guides/overview.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/guides/repository.md b/docs/source/en/guides/repository.md index adfc881298..6426fd136a 100644 --- a/docs/source/en/guides/repository.md +++ b/docs/source/en/guides/repository.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/guides/search.md b/docs/source/en/guides/search.md index e5e50e0c29..ce0f6c0bdc 100644 --- a/docs/source/en/guides/search.md +++ b/docs/source/en/guides/search.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/guides/upload.md b/docs/source/en/guides/upload.md index b2658f5c68..d12ff09990 100644 --- a/docs/source/en/guides/upload.md +++ b/docs/source/en/guides/upload.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/guides/webhooks.md b/docs/source/en/guides/webhooks.md index 3d9856c920..064a6cfa99 100644 --- a/docs/source/en/guides/webhooks.md +++ b/docs/source/en/guides/webhooks.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/index.md b/docs/source/en/index.md index 0095c26700..900d26b346 100644 --- a/docs/source/en/index.md +++ b/docs/source/en/index.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/installation.md b/docs/source/en/installation.md index c769d75fbe..89ddaff0d9 100644 --- a/docs/source/en/installation.md +++ b/docs/source/en/installation.md @@ -1,4 +1,4 @@ - @@ -145,7 +145,7 @@ encounter any undocumented problem by opening [an issue on Github](https://githu - `huggingface_hub`'s cache system relies on symlinks to efficiently cache files downloaded from the Hub. On Windows, you must activate developer mode or run your script as admin to -enable symlinks. If they are not activated, the cache-system still works but in an non-optimized +enable symlinks. If they are not activated, the cache-system still works but in a non-optimized manner. Please read [the cache limitations](./guides/manage-cache#limitations) section for more details. - Filepaths on the Hub can have special characters (e.g. `"path/to?/my/file"`). Windows is more restrictive on [special characters](https://learn.microsoft.com/en-us/windows/win32/intl/character-sets-used-in-file-names) diff --git a/docs/source/en/package_reference/authentication.md b/docs/source/en/package_reference/authentication.md index 1577b5bc29..84c7344d22 100644 --- a/docs/source/en/package_reference/authentication.md +++ b/docs/source/en/package_reference/authentication.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/cache.md b/docs/source/en/package_reference/cache.md index ea8cad29c7..83bb1b956a 100644 --- a/docs/source/en/package_reference/cache.md +++ b/docs/source/en/package_reference/cache.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/cards.md b/docs/source/en/package_reference/cards.md index 99fc1196d2..c3ccfbe1ad 100644 --- a/docs/source/en/package_reference/cards.md +++ b/docs/source/en/package_reference/cards.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/collections.md b/docs/source/en/package_reference/collections.md index 8b54d5a744..1678a88d0c 100644 --- a/docs/source/en/package_reference/collections.md +++ b/docs/source/en/package_reference/collections.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/community.md b/docs/source/en/package_reference/community.md index d41d45c8a6..50ae75e054 100644 --- a/docs/source/en/package_reference/community.md +++ b/docs/source/en/package_reference/community.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/environment_variables.md b/docs/source/en/package_reference/environment_variables.md index 15fe3ad3b8..2930a462fa 100644 --- a/docs/source/en/package_reference/environment_variables.md +++ b/docs/source/en/package_reference/environment_variables.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/file_download.md b/docs/source/en/package_reference/file_download.md index 1bc5b21478..26a033c5f1 100644 --- a/docs/source/en/package_reference/file_download.md +++ b/docs/source/en/package_reference/file_download.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/hf_api.md b/docs/source/en/package_reference/hf_api.md index 38c8990469..4c77b44aaa 100644 --- a/docs/source/en/package_reference/hf_api.md +++ b/docs/source/en/package_reference/hf_api.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/hf_file_system.md b/docs/source/en/package_reference/hf_file_system.md index 097c798fa7..89fcf23887 100644 --- a/docs/source/en/package_reference/hf_file_system.md +++ b/docs/source/en/package_reference/hf_file_system.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/inference_client.md b/docs/source/en/package_reference/inference_client.md index 2a6b37c61b..5cfef6be0d 100644 --- a/docs/source/en/package_reference/inference_client.md +++ b/docs/source/en/package_reference/inference_client.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/inference_types.md b/docs/source/en/package_reference/inference_types.md index aa63c64b68..368a716cf3 100644 --- a/docs/source/en/package_reference/inference_types.md +++ b/docs/source/en/package_reference/inference_types.md @@ -1,5 +1,5 @@ - diff --git a/docs/source/en/package_reference/mixins.md b/docs/source/en/package_reference/mixins.md index 04e66c8f2d..42c253e710 100644 --- a/docs/source/en/package_reference/mixins.md +++ b/docs/source/en/package_reference/mixins.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/overview.md b/docs/source/en/package_reference/overview.md index 1265c1efef..1bb51ac910 100644 --- a/docs/source/en/package_reference/overview.md +++ b/docs/source/en/package_reference/overview.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/repository.md b/docs/source/en/package_reference/repository.md index 0a8ebf284c..de7851d6a9 100644 --- a/docs/source/en/package_reference/repository.md +++ b/docs/source/en/package_reference/repository.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/serialization.md b/docs/source/en/package_reference/serialization.md index 841d9d3011..0149855e02 100644 --- a/docs/source/en/package_reference/serialization.md +++ b/docs/source/en/package_reference/serialization.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/space_runtime.md b/docs/source/en/package_reference/space_runtime.md index 75fac898fd..364c43be35 100644 --- a/docs/source/en/package_reference/space_runtime.md +++ b/docs/source/en/package_reference/space_runtime.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/tensorboard.md b/docs/source/en/package_reference/tensorboard.md index 20fa4a3885..14addbb5ba 100644 --- a/docs/source/en/package_reference/tensorboard.md +++ b/docs/source/en/package_reference/tensorboard.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/utilities.md b/docs/source/en/package_reference/utilities.md index 5ea9d56b46..80fe3148ff 100644 --- a/docs/source/en/package_reference/utilities.md +++ b/docs/source/en/package_reference/utilities.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/package_reference/webhooks_server.md b/docs/source/en/package_reference/webhooks_server.md index 3d6847a3e0..a9115cbb03 100644 --- a/docs/source/en/package_reference/webhooks_server.md +++ b/docs/source/en/package_reference/webhooks_server.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/en/quick-start.md b/docs/source/en/quick-start.md index dbbe0d2a91..b8a2b67005 100644 --- a/docs/source/en/quick-start.md +++ b/docs/source/en/quick-start.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/fr/concepts/git_vs_http.md b/docs/source/fr/concepts/git_vs_http.md index 8a4829b8ff..8ccc31b69c 100644 --- a/docs/source/fr/concepts/git_vs_http.md +++ b/docs/source/fr/concepts/git_vs_http.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/fr/guides/integrations.md b/docs/source/fr/guides/integrations.md index 5813707f90..3adcc8f9f7 100644 --- a/docs/source/fr/guides/integrations.md +++ b/docs/source/fr/guides/integrations.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/fr/index.md b/docs/source/fr/index.md index e0ddf64ae5..51a19a3ea3 100644 --- a/docs/source/fr/index.md +++ b/docs/source/fr/index.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/fr/installation.md b/docs/source/fr/installation.md index a06a838a95..219808f823 100644 --- a/docs/source/fr/installation.md +++ b/docs/source/fr/installation.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/fr/quick-start.md b/docs/source/fr/quick-start.md index f11d5412c3..1a99d830d7 100644 --- a/docs/source/fr/quick-start.md +++ b/docs/source/fr/quick-start.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/hi/index.md b/docs/source/hi/index.md index e2f83b7d56..99cd7aeccb 100644 --- a/docs/source/hi/index.md +++ b/docs/source/hi/index.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/hi/installation.md b/docs/source/hi/installation.md index d154d0fc5a..4587838950 100644 --- a/docs/source/hi/installation.md +++ b/docs/source/hi/installation.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/hi/quick-start.md b/docs/source/hi/quick-start.md index 88cf26f02f..3ce8a78a7a 100644 --- a/docs/source/hi/quick-start.md +++ b/docs/source/hi/quick-start.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/concepts/git_vs_http.md b/docs/source/ko/concepts/git_vs_http.md index ac9761ec7c..7f2bd9933f 100644 --- a/docs/source/ko/concepts/git_vs_http.md +++ b/docs/source/ko/concepts/git_vs_http.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/cli.md b/docs/source/ko/guides/cli.md index 6dbd0fd3ef..13c4352235 100644 --- a/docs/source/ko/guides/cli.md +++ b/docs/source/ko/guides/cli.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/collections.md b/docs/source/ko/guides/collections.md index bb7db4bb36..69e75b92cf 100644 --- a/docs/source/ko/guides/collections.md +++ b/docs/source/ko/guides/collections.md @@ -1,4 +1,4 @@ - # Collections[[collections]] diff --git a/docs/source/ko/guides/community.md b/docs/source/ko/guides/community.md index 1affc7861e..76ecb23e25 100644 --- a/docs/source/ko/guides/community.md +++ b/docs/source/ko/guides/community.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/download.md b/docs/source/ko/guides/download.md index e4d52d5cca..ac658dde4e 100644 --- a/docs/source/ko/guides/download.md +++ b/docs/source/ko/guides/download.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/hf_file_system.md b/docs/source/ko/guides/hf_file_system.md index e3f9b9a521..74a02f71f5 100644 --- a/docs/source/ko/guides/hf_file_system.md +++ b/docs/source/ko/guides/hf_file_system.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/inference.md b/docs/source/ko/guides/inference.md index f59f2b52b8..04ac68ad41 100644 --- a/docs/source/ko/guides/inference.md +++ b/docs/source/ko/guides/inference.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/integrations.md b/docs/source/ko/guides/integrations.md index f251785a07..f0946bc298 100644 --- a/docs/source/ko/guides/integrations.md +++ b/docs/source/ko/guides/integrations.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/manage-cache.md b/docs/source/ko/guides/manage-cache.md index 9e5c1a674f..7b54c7eaab 100644 --- a/docs/source/ko/guides/manage-cache.md +++ b/docs/source/ko/guides/manage-cache.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/manage-spaces.md b/docs/source/ko/guides/manage-spaces.md index 7ee3ccde21..f629d121e0 100644 --- a/docs/source/ko/guides/manage-spaces.md +++ b/docs/source/ko/guides/manage-spaces.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/model-cards.md b/docs/source/ko/guides/model-cards.md index 15bdd320fc..41bc4f1317 100644 --- a/docs/source/ko/guides/model-cards.md +++ b/docs/source/ko/guides/model-cards.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/overview.md b/docs/source/ko/guides/overview.md index 318f933c4d..9e171c97f0 100644 --- a/docs/source/ko/guides/overview.md +++ b/docs/source/ko/guides/overview.md @@ -1,4 +1,4 @@ - @@ -118,4 +118,4 @@ rendered properly in your Markdown viewer. - + diff --git a/docs/source/ko/guides/repository.md b/docs/source/ko/guides/repository.md index 56328b419c..ab6e7bea34 100644 --- a/docs/source/ko/guides/repository.md +++ b/docs/source/ko/guides/repository.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/search.md b/docs/source/ko/guides/search.md index e5e37e7c68..ef739d4bde 100644 --- a/docs/source/ko/guides/search.md +++ b/docs/source/ko/guides/search.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/upload.md b/docs/source/ko/guides/upload.md index e097870b01..fd704d0ba6 100644 --- a/docs/source/ko/guides/upload.md +++ b/docs/source/ko/guides/upload.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/guides/webhooks_server.md b/docs/source/ko/guides/webhooks_server.md index adc94e1877..39049e160a 100644 --- a/docs/source/ko/guides/webhooks_server.md +++ b/docs/source/ko/guides/webhooks_server.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/index.md b/docs/source/ko/index.md index 53785d8fe3..b5428b6a7c 100644 --- a/docs/source/ko/index.md +++ b/docs/source/ko/index.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/installation.md b/docs/source/ko/installation.md index 346189835a..b70808b3b7 100644 --- a/docs/source/ko/installation.md +++ b/docs/source/ko/installation.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/cache.md b/docs/source/ko/package_reference/cache.md index 2e155c7f63..53c6d358ee 100644 --- a/docs/source/ko/package_reference/cache.md +++ b/docs/source/ko/package_reference/cache.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/collections.md b/docs/source/ko/package_reference/collections.md index 3b7bec4826..d8276953b0 100644 --- a/docs/source/ko/package_reference/collections.md +++ b/docs/source/ko/package_reference/collections.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/community.md b/docs/source/ko/package_reference/community.md index 264af6fba5..9e598efc77 100644 --- a/docs/source/ko/package_reference/community.md +++ b/docs/source/ko/package_reference/community.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/environment_variables.md b/docs/source/ko/package_reference/environment_variables.md index 455e5e49ab..a4d26123e4 100644 --- a/docs/source/ko/package_reference/environment_variables.md +++ b/docs/source/ko/package_reference/environment_variables.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/file_download.md b/docs/source/ko/package_reference/file_download.md index 82e67a83c6..b3b36f5659 100644 --- a/docs/source/ko/package_reference/file_download.md +++ b/docs/source/ko/package_reference/file_download.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/hf_api.md b/docs/source/ko/package_reference/hf_api.md index 2efe5c965a..f3363fce61 100644 --- a/docs/source/ko/package_reference/hf_api.md +++ b/docs/source/ko/package_reference/hf_api.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/hf_file_system.md b/docs/source/ko/package_reference/hf_file_system.md index fb27660d8b..bebbeda1f1 100644 --- a/docs/source/ko/package_reference/hf_file_system.md +++ b/docs/source/ko/package_reference/hf_file_system.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/inference_client.md b/docs/source/ko/package_reference/inference_client.md index d3ecfcaa87..2ccab6366f 100644 --- a/docs/source/ko/package_reference/inference_client.md +++ b/docs/source/ko/package_reference/inference_client.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/inference_types.md b/docs/source/ko/package_reference/inference_types.md index 393481e10f..6ae2736fba 100644 --- a/docs/source/ko/package_reference/inference_types.md +++ b/docs/source/ko/package_reference/inference_types.md @@ -1,5 +1,5 @@ - diff --git a/docs/source/ko/package_reference/login.md b/docs/source/ko/package_reference/login.md index 8ab39c2208..dbfa8a0650 100644 --- a/docs/source/ko/package_reference/login.md +++ b/docs/source/ko/package_reference/login.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/mixins.md b/docs/source/ko/package_reference/mixins.md index 53aaf9303a..4a4a84ad9e 100644 --- a/docs/source/ko/package_reference/mixins.md +++ b/docs/source/ko/package_reference/mixins.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/overview.md b/docs/source/ko/package_reference/overview.md index 87fcb99ea1..f55369302b 100644 --- a/docs/source/ko/package_reference/overview.md +++ b/docs/source/ko/package_reference/overview.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/repository.md b/docs/source/ko/package_reference/repository.md index b513137cc9..fc70e3e203 100644 --- a/docs/source/ko/package_reference/repository.md +++ b/docs/source/ko/package_reference/repository.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/serialization.md b/docs/source/ko/package_reference/serialization.md index d026052eda..25901237bf 100644 --- a/docs/source/ko/package_reference/serialization.md +++ b/docs/source/ko/package_reference/serialization.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/space_runtime.md b/docs/source/ko/package_reference/space_runtime.md index 8f22a5361f..03bc46cd13 100644 --- a/docs/source/ko/package_reference/space_runtime.md +++ b/docs/source/ko/package_reference/space_runtime.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/tensorboard.md b/docs/source/ko/package_reference/tensorboard.md index 395a733756..77f87e5ea0 100644 --- a/docs/source/ko/package_reference/tensorboard.md +++ b/docs/source/ko/package_reference/tensorboard.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/utilities.md b/docs/source/ko/package_reference/utilities.md index 592092f64a..a76e9d474b 100644 --- a/docs/source/ko/package_reference/utilities.md +++ b/docs/source/ko/package_reference/utilities.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/package_reference/webhooks_server.md b/docs/source/ko/package_reference/webhooks_server.md index 9712c6c0be..8764fb2f7f 100644 --- a/docs/source/ko/package_reference/webhooks_server.md +++ b/docs/source/ko/package_reference/webhooks_server.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/ko/quick-start.md b/docs/source/ko/quick-start.md index 9a6eb23b5a..30e07331e3 100644 --- a/docs/source/ko/quick-start.md +++ b/docs/source/ko/quick-start.md @@ -1,4 +1,4 @@ - diff --git a/docs/source/tm/index.md b/docs/source/tm/index.md index 4b524eed3e..a4fdc5e4b9 100644 --- a/docs/source/tm/index.md +++ b/docs/source/tm/index.md @@ -1,4 +1,4 @@ - diff --git a/src/huggingface_hub/inference/_common.py b/src/huggingface_hub/inference/_common.py index a19636a506..a5d80f282a 100644 --- a/src/huggingface_hub/inference/_common.py +++ b/src/huggingface_hub/inference/_common.py @@ -81,7 +81,7 @@ @dataclass class ModelStatus: """ - This Dataclass represents the the model status in the Hugging Face Inference API. + This Dataclass represents the model status in the Hugging Face Inference API. Args: loaded (`bool`): @@ -213,7 +213,7 @@ def _open_as_binary(content: Optional[ContentT]) -> Generator[Optional[BinaryT], def _b64_encode(content: ContentT) -> str: - """Encode a raw file (image, audio) into base64. Can be byes, an opened file, a path or a URL.""" + """Encode a raw file (image, audio) into base64. Can be bytes, an opened file, a path or a URL.""" with _open_as_binary(content) as data: data_as_bytes = data if isinstance(data, bytes) else data.read() return base64.b64encode(data_as_bytes).decode() diff --git a/utils/generate_async_inference_client.py b/utils/generate_async_inference_client.py index 832049ad5d..a4b92f1d64 100644 --- a/utils/generate_async_inference_client.py +++ b/utils/generate_async_inference_client.py @@ -102,7 +102,7 @@ def check_async_client(update: bool) -> NoReturn: else: print( "❌ Expected content mismatch in `./src/huggingface_hub/inference/_generated/_async_client.py`.\n It" - " is most likely that you modified some InferenceClient code and did not update the the" + " is most likely that you modified some InferenceClient code and did not update the" " AsyncInferenceClient one.\n Please run `make style` or `python" " utils/generate_async_inference_client.py --update`." ) diff --git a/utils/generate_inference_types.py b/utils/generate_inference_types.py index 23ab7c7b9c..5f9675d60a 100644 --- a/utils/generate_inference_types.py +++ b/utils/generate_inference_types.py @@ -98,7 +98,7 @@ ] REFERENCE_PACKAGE_EN_CONTENT = """ - @@ -119,7 +119,7 @@ """ REFERENCE_PACKAGE_KO_CONTENT = """ -