TypeError: issubclass() arg 1 must be a class #5739
Closed
GurnaikLall
started this conversation in
General
Replies: 1 comment
-
Same here just with code provided here: https://python.langchain.com/docs/modules/model_io/models/llms/integrations/textgen |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Getting the following error
TypeError: issubclass() arg 1 must be a class
when i execute:
**from langchain.embeddings import HuggingFaceEmbeddings
#from transformers import pipeline
Download model from Hugging face
model_name = "sentence-transformers/all-mpnet-base-v2"
hf_embed = HuggingFaceEmbeddings(model_name=model_name)**
Beta Was this translation helpful? Give feedback.
All reactions