Skip to content

fix :langchain for text classification task #740

Merged
ArshaanNazir merged 3 commits intorelease/1.4.0from
fix-import
Sep 1, 2023
Merged

fix :langchain for text classification task #740
ArshaanNazir merged 3 commits intorelease/1.4.0from
fix-import

Conversation

@Prikshit7766
Copy link
Copy Markdown
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
@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