Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/huggingface_hub/_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from pathlib import Path
from typing import Optional

import typer

from . import constants
from .utils import (
ANSI,
Expand Down Expand Up @@ -244,8 +246,6 @@ def interpreter_login(*, skip_if_logged_in: bool = False) -> None:
logger.info("User is already logged in.")
return

from .cli.cache import _ask_for_confirmation_no_tui

print(_HF_LOGO_ASCII)
if get_token() is not None:
logger.info(
Expand All @@ -261,7 +261,7 @@ def interpreter_login(*, skip_if_logged_in: bool = False) -> None:
if os.name == "nt":
logger.info("Token can be pasted using 'Right-Click'.")
token = getpass("Enter your token (input will not be visible): ")
add_to_git_credential = _ask_for_confirmation_no_tui("Add token as git credential?")
add_to_git_credential = typer.confirm("Add token as git credential?")

_login(token=token, add_to_git_credential=add_to_git_credential)

Expand Down
Loading
Loading