Skip to content
Merged
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions scripts/publish_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
from pathlib import Path
from typing import Final

_CREDENTIALS_FILE: Final[Path] = Path.home() / ".config" / "leadforge" / "credentials"
_CREDENTIALS_FILE: Final[Path] = Path.home() / ".config" / "huggingface" / "credentials"


def _read_token_from_credentials_file() -> str | None:
"""Read HF_TOKEN from ``~/.config/leadforge/credentials`` if present.
"""Read HF_TOKEN from ``~/.config/huggingface/credentials`` if present.

The file uses ``KEY=VALUE`` lines; blank lines and lines starting with
``#`` are ignored. Returns the first value for ``HF_TOKEN`` found, or
Expand Down
Loading