Problem Description
The src/modelinfo/parsers/huggingface.py file currently hardcodes the URL https://huggingface.co/ across multiple functions. Many developers in enterprise environments or specific regions use proxy servers or Hugging Face mirrors (like hf-mirror.com).
Proposed Solution
- Read the
HF_ENDPOINT environment variable.
- Fallback to
https://huggingface.co if it's not set.
- Replace the hardcoded base URLs in the parser functions to use the dynamically resolved endpoint.
Alternatives Considered
No response
Additional Context
This is a great issue for anyone looking to contribute to the project!
Problem Description
The
src/modelinfo/parsers/huggingface.pyfile currently hardcodes the URLhttps://huggingface.co/across multiple functions. Many developers in enterprise environments or specific regions use proxy servers or Hugging Face mirrors (likehf-mirror.com).Proposed Solution
HF_ENDPOINTenvironment variable.https://huggingface.coif it's not set.Alternatives Considered
No response
Additional Context
This is a great issue for anyone looking to contribute to the project!