Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HF_ENDPOINT variable for HuggingFace domain with default #15443

Merged

Commits on Apr 5, 2024

  1. Use HF_ENDPOINT variable for HuggingFace domain with default

    Modified the list_models function to dynamically construct the model URL
    by using an environment variable for the HuggingFace domain. This allows
    for greater flexibility in specifying the domain and ensures that the
    modification is also compatible with the Hub client library. By
    supporting different environments or requirements without hardcoding the
    domain name, this change facilitates the use of custom HuggingFace
    domains not only within our code but also when interacting with the Hub
    client library.
    Marsel Markhabulin committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    989b89b View commit details
    Browse the repository at this point in the history