I'm trying to do the following simple code:
from transformers import pipelineimport langchainfrom langchain.llms import HuggingFacePipelinemodel_name = "bert-base-uncased"task = "question-answering"I get the following error:
- ERROR:
TypeError: issubclass() arg 1 must be a class - LINE:
from langchain.llms import HuggingFacePipeline
I found the following questions (that didn't help):
- TypeError: issubclass() arg 1 must be a class when importing langchain in Flask
- FastAPI - "TypeError: issubclass() arg 1 must be a class" with modular imports
- TypeError: issubclass() arg 1 must be a class when using langchain in azure
- import langchain => Error : TypeError: issubclass() arg 1 must be a class
I'm using Databricks with the following:

