Skip to content

Commit f741516

Browse files
committed
more logins
1 parent b1e6ab2 commit f741516

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/diffusers/models/modeling_flax_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ def from_pretrained(
369369
raise EnvironmentError(
370370
f"{pretrained_model_name_or_path} is not a local folder and is not a valid model identifier "
371371
"listed on 'https://huggingface.co/models'\nIf this is a private repository, make sure to pass a "
372-
"token having permission to this repo with `token` or log in with `huggingface-cli "
373-
"login`."
372+
"token having permission to this repo with `token` or log in with `hf auth login`."
374373
)
375374
except RevisionNotFoundError:
376375
raise EnvironmentError(

src/diffusers/utils/hub_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,7 @@ def _get_model_file(
304304
raise EnvironmentError(
305305
f"{pretrained_model_name_or_path} is not a local folder and is not a valid model identifier "
306306
"listed on 'https://huggingface.co/models'\nIf this is a private repository, make sure to pass a "
307-
"token having permission to this repo with `token` or log in with `huggingface-cli "
308-
"login`."
307+
"token having permission to this repo with `token` or log in with `hf auth login`."
309308
) from e
310309
except RevisionNotFoundError as e:
311310
raise EnvironmentError(
@@ -516,7 +515,7 @@ def push_to_hub(
516515
organization's default is private. This value is ignored if the repo already exists.
517516
token (`str`, *optional*):
518517
The token to use as HTTP bearer authorization for remote files. The token generated when running
519-
`huggingface-cli login` (stored in `~/.huggingface`).
518+
`hf auth login` (stored in `~/.huggingface`).
520519
create_pr (`bool`, *optional*, defaults to `False`):
521520
Whether or not to create a PR with the uploaded files or directly commit.
522521
safe_serialization (`bool`, *optional*, defaults to `True`):

0 commit comments

Comments
 (0)