| 79 | "hdemucs_mmi": {"models": ["75fc33f5"], "segment": 44}, |
| 80 | } |
| 81 | |
| 82 | |
| 83 | def huggingface_token() -> str | None: |
| 84 | token = os.environ.get("HF_TOKEN") or os.environ.get("HUGGING_FACE_HUB_TOKEN") |
| 85 | if token: |
| 86 | return token.strip() |
| 87 | token_path = Path.home() / ".cache" / "huggingface" / "token" |
| 88 | if token_path.is_file(): |