Skip to content

Commit b686f98

Browse files
Apply style fixes
1 parent cfc248c commit b686f98

File tree

10 files changed

+27
-27
lines changed

10 files changed

+27
-27
lines changed

src/diffusers/dependency_versions_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"filelock": "filelock",
1010
"flax": "flax>=0.4.1",
1111
"hf-doc-builder": "hf-doc-builder>=0.3.0",
12-
"huggingface-hub": "huggingface-hub>=0.27.0",
12+
"huggingface-hub": "huggingface-hub>=0.34.0",
1313
"requests-mock": "requests-mock==1.10.0",
1414
"importlib_metadata": "importlib_metadata",
1515
"invisible-watermark": "invisible-watermark>=0.2.0",

src/diffusers/guiders/guider_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ def from_pretrained(
249249
250250
<Tip>
251251
252-
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
253-
`hf auth login`. You can also activate the special
252+
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
253+
auth login`. You can also activate the special
254254
["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
255255
firewalled environment.
256256

src/diffusers/models/auto_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def from_pretrained(cls, pretrained_model_or_path: Optional[Union[str, os.PathLi
117117
118118
<Tip>
119119
120-
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
121-
`hf auth login`. You can also activate the special
120+
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
121+
auth login`. You can also activate the special
122122
["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
123123
firewalled environment.
124124

src/diffusers/models/modeling_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,8 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
943943
944944
<Tip>
945945
946-
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
947-
`hf auth login`. You can also activate the special
946+
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
947+
auth login`. You can also activate the special
948948
["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
949949
firewalled environment.
950950

src/diffusers/pipelines/auto_pipeline.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ def from_pretrained(cls, pretrained_model_or_path, **kwargs):
392392
393393
<Tip>
394394
395-
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
396-
`hf auth login`.
395+
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
396+
auth login`.
397397
398398
</Tip>
399399
@@ -687,8 +687,8 @@ def from_pretrained(cls, pretrained_model_or_path, **kwargs):
687687
688688
<Tip>
689689
690-
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
691-
`hf auth login`.
690+
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
691+
auth login`.
692692
693693
</Tip>
694694
@@ -997,8 +997,8 @@ def from_pretrained(cls, pretrained_model_or_path, **kwargs):
997997
998998
<Tip>
999999
1000-
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
1001-
`hf auth login`.
1000+
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
1001+
auth login`.
10021002
10031003
</Tip>
10041004

src/diffusers/pipelines/pipeline_flax_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
278278
279279
<Tip>
280280
281-
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
282-
`hf auth login`.
281+
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
282+
auth login`.
283283
284284
</Tip>
285285

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,8 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
710710
711711
<Tip>
712712
713-
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with
714-
`hf auth login`.
713+
To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `hf
714+
auth login`.
715715
716716
</Tip>
717717
@@ -1430,8 +1430,8 @@ def download(cls, pretrained_model_name, **kwargs) -> Union[str, os.PathLike]:
14301430
14311431
<Tip>
14321432
1433-
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
1434-
`hf auth login
1433+
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
1434+
auth login
14351435
14361436
</Tip>
14371437

src/diffusers/schedulers/scheduling_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def from_pretrained(
140140
141141
<Tip>
142142
143-
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with
144-
`hf auth login`. You can also activate the special
143+
To use private or [gated models](https://huggingface.co/docs/hub/models-gated#gated-models), log-in with `hf
144+
auth login`. You can also activate the special
145145
["offline-mode"](https://huggingface.co/diffusers/installation.html#offline-mode) to use this method in a
146146
firewalled environment.
147147

src/diffusers/utils/dynamic_modules_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ def get_cached_module_file(
318318
319319
<Tip>
320320
321-
You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or
322-
[gated models](https://huggingface.co/docs/hub/models-gated#gated-models).
321+
You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or [gated
322+
models](https://huggingface.co/docs/hub/models-gated#gated-models).
323323
324324
</Tip>
325325
@@ -505,8 +505,8 @@ def get_class_from_dynamic_module(
505505
506506
<Tip>
507507
508-
You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or
509-
[gated models](https://huggingface.co/docs/hub/models-gated#gated-models).
508+
You may pass a token in `token` if you are not logged in (`hf auth login`) and want to use private or [gated
509+
models](https://huggingface.co/docs/hub/models-gated#gated-models).
510510
511511
</Tip>
512512

src/diffusers/utils/hub_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ def push_to_hub(
514514
Whether to make the repo private. If `None` (default), the repo will be public unless the
515515
organization's default is private. This value is ignored if the repo already exists.
516516
token (`str`, *optional*):
517-
The token to use as HTTP bearer authorization for remote files. The token generated when running
518-
`hf auth login` (stored in `~/.huggingface`).
517+
The token to use as HTTP bearer authorization for remote files. The token generated when running `hf
518+
auth login` (stored in `~/.huggingface`).
519519
create_pr (`bool`, *optional*, defaults to `False`):
520520
Whether or not to create a PR with the uploaded files or directly commit.
521521
safe_serialization (`bool`, *optional*, defaults to `True`):

0 commit comments

Comments
 (0)