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

fix :langchain for text classification task #740

Merged
merged 3 commits into from
Sep 1, 2023
Merged

Conversation

Prikshit7766
Copy link
Contributor

@Prikshit7766 Prikshit7766 commented Sep 1, 2023

Description

For text classification task and hub - huggingface , we have don't need to install langchain. This bug is due to the import statement in In the transformers_modelhandler.py

image

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I've added Google style docstrings to my code.
  • I've used pydantic for typing when/where necessary.
  • I have linted my code
  • I have added tests to cover my changes.

Usage

from langtest import Harness
harness = Harness(
            task = "text-classification",
            model={"model":'lvwerra/distilbert-imdb', "hub":"huggingface"},

        )

Screenshots (if appropriate):

image

@Prikshit7766 Prikshit7766 linked an issue Sep 1, 2023 that may be closed by this pull request
@Prikshit7766 Prikshit7766 added the 🐛 Bug Something isn't working label Sep 1, 2023
@Prikshit7766 Prikshit7766 changed the title fix import PromptTemplate fix :langchain for text classification task Sep 1, 2023
@ArshaanNazir ArshaanNazir merged commit 9780839 into release/1.4.0 Sep 1, 2023
3 checks passed
@ArshaanNazir ArshaanNazir deleted the fix-import branch September 6, 2023 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: langchain for text classification task
2 participants