Skip to content

Commit caa3231

Browse files
[Doc]: fix various typos in different files (#3514)
1 parent 87acdc3 commit caa3231

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

docs/source/en/guides/model-cards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ By default, you cannot update a key that is already existing on the card. If you
247247
>>> metadata_update("username/my-cool-model", {"pipeline_tag": "text-generation"}, overwrite=True)
248248
```
249249

250-
It often happen that you want to suggest some changes to a repository
250+
It often happens that you want to suggest some changes to a repository
251251
on which you don't have write permission. You can do that by creating a PR on that repo which will allow the owners to
252252
review and merge your suggestions.
253253

docs/source/en/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rendered properly in your Markdown viewer.
44

55
# Installation
66

7-
Before you start, you will need to setup your environment by installing the appropriate packages.
7+
Before you start, you will need to set up your environment by installing the appropriate packages.
88

99
`huggingface_hub` is tested on **Python 3.9+**.
1010

@@ -84,7 +84,7 @@ Once done, [check installation](#check-installation) is working correctly.
8484

8585
### Editable install
8686

87-
Installing from source allows you to setup an [editable install](https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs).
87+
Installing from source allows you to set up an [editable install](https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs).
8888
This is a more advanced installation if you plan to contribute to `huggingface_hub`
8989
and need to test changes in the code. You need to clone a local copy of `huggingface_hub`
9090
on your machine.
@@ -168,5 +168,5 @@ a solution.
168168

169169
## Next steps
170170

171-
Once `huggingface_hub` is properly installed on your machine, you might want
171+
Once `huggingface_hub` is properly installed on your machine, you might want to
172172
[configure environment variables](package_reference/environment_variables) or [check one of our guides](guides/overview) to get started.

docs/source/en/package_reference/file_download.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ The methods displayed above are designed to work with a caching system that prev
3434
re-downloading files. The caching system was updated in v0.8.0 to become the central
3535
cache-system shared across libraries that depend on the Hub.
3636

37-
Read the [cache-system guide](../guides/manage-cache) for a detailed presentation of caching at
38-
at HF.
37+
Read the [cache-system guide](../guides/manage-cache) for a detailed presentation of caching at HF.

docs/source/en/package_reference/utilities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ user as possible.
230230

231231
## Telemetry
232232

233-
`huggingface_hub` includes an helper to send telemetry data. This information helps us debug issues and prioritize new features.
233+
`huggingface_hub` includes a helper to send telemetry data. This information helps us debug issues and prioritize new features.
234234
Users can disable telemetry collection at any time by setting the `HF_HUB_DISABLE_TELEMETRY=1` environment variable.
235235
Telemetry is also disabled in offline mode (i.e. when setting HF_HUB_OFFLINE=1).
236236

src/huggingface_hub/inference/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
PathT = Union[str, Path]
4848
ContentT = Union[bytes, BinaryIO, PathT, UrlT, "Image", bytearray, memoryview]
4949

50-
# Use to set a Accept: image/png header
50+
# Use to set an Accept: image/png header
5151
TASKS_EXPECTING_IMAGES = {"text-to-image", "image-to-image"}
5252

5353
logger = logging.getLogger(__name__)

tests/test_repocard_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def test_metadata_behave_as_dict(self):
4949

5050
# .get and __getitem__
5151
self.assertEqual(metadata.get("foo"), "bar")
52-
self.assertEqual(metadata.get("FOO"), None) # case sensitive
52+
self.assertEqual(metadata.get("FOO"), None) # case-sensitive
5353
self.assertEqual(metadata["foo"], "bar")
54-
with self.assertRaises(KeyError): # case sensitive
54+
with self.assertRaises(KeyError): # case-sensitive
5555
_ = metadata["FOO"]
5656

5757
# __setitem__

tests/testing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def expect_deprecation(function_name: str):
256256
function_name (`str`):
257257
Name of the function that we expect to use in a deprecated way.
258258
259-
NOTE: if a test is expected to warns FutureWarnings but is not, the test will fail.
259+
NOTE: if a test is expected to warn FutureWarnings but is not, the test will fail.
260260
261261
Context: over time, some arguments/methods become deprecated. In order to track
262262
deprecation in tests, we run pytest with flag `-Werror::FutureWarning`.

0 commit comments

Comments
 (0)