HI ALL , BELOW IS MY CODE:
from langchain.llms import HuggingFaceHub
from langchain import PromptTemplate, LLMChain
repo_id=“mistralai/Mistral-7B-Instruct-v0.2”
response=llm.invoke(“what is the capital of USA”)
print(response)
ERROR BELOW:
AttributeError: ‘InferenceClient’ object has no attribute ‘post’
1 Like
Ongoing issue.
Solution for SentenceTransformers:
ANY SOLUTION GUYS ??
KINDLY PLEASE PROVIDE THE SOLUTION
1 Like
Hmm… It seems that this cannot be resolved with a user patch…
I think you need to raise an issue to resolve this.