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

HuggingFaceEndpoint: Correct Example for ImportError #1176

Merged
merged 3 commits into from
Feb 21, 2023

Commits on Feb 20, 2023

  1. Correct Example for import Error

    When I try to import the Class HuggingFaceEndpoint I get an Import Error: cannot import name 'HuggingFaceEndpoint' from 'langchain'. (langchain version 0.0.88)
    These two imports work fine: from langchain import HuggingFacePipeline and from langchain import HuggingFaceHub.
    
    So I corrected the import statement in the example. There is probably a better solution to this, but this fixes the Error for me.
    KonstantinHebenstreit authored Feb 20, 2023
    Configuration menu
    Copy the full SHA
    6f8e833 View commit details
    Browse the repository at this point in the history
  2. Update __init__.py

    To make the import of HuggingFaceEndpoint work.
    KonstantinHebenstreit authored Feb 20, 2023
    Configuration menu
    Copy the full SHA
    86fa9a3 View commit details
    Browse the repository at this point in the history
  3. Update __init__.py

    If necessary also update the general init.py
    Such that "from langchain import HuggingFaceEndpoint" is possible.
    KonstantinHebenstreit authored Feb 20, 2023
    Configuration menu
    Copy the full SHA
    b1afccc View commit details
    Browse the repository at this point in the history