personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rename HF_TOKEN to HUGGINGFACE_API_KEY in observe/diarize.py

Standardize on HUGGINGFACE_API_KEY as the primary environment variable
for HuggingFace authentication, with HF_TOKEN as a backwards-compatible
fallback. Updated module docstring and error messages accordingly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+4 -4
+4 -4
observe/diarize.py
··· 4 4 community pipeline, along with per-turn speaker embeddings for future 5 5 speaker identification. 6 6 7 - Requires HF_TOKEN environment variable for HuggingFace authentication. 7 + Requires HUGGINGFACE_API_KEY environment variable for HuggingFace authentication. 8 8 """ 9 9 10 10 from __future__ import annotations ··· 36 36 """Get HuggingFace token from environment. 37 37 38 38 Raises: 39 - DiarizationError: If HF_TOKEN is not set. 39 + DiarizationError: If HUGGINGFACE_API_KEY is not set. 40 40 """ 41 - token = os.environ.get("HF_TOKEN") or os.environ.get("HUGGINGFACE_API_KEY") 41 + token = os.environ.get("HUGGINGFACE_API_KEY") or os.environ.get("HF_TOKEN") 42 42 if not token: 43 43 raise DiarizationError( 44 - "HF_TOKEN environment variable required. " 44 + "HUGGINGFACE_API_KEY environment variable required. " 45 45 "Get your token at https://huggingface.co/settings/tokens" 46 46 ) 47 47 return token