# https://chat.lmsys.org/?leaderboard | |
from langchain.llms import HuggingFaceHub | |
llm_hf = HuggingFaceHub( | |
repo_id="google/flan-t5-xl", | |
model_kwargs={"temperature":0.9 } | |
) | |
text = "Why did the chicken cross the road?" | |
print(llm_hf(text)) | |
# https://chat.lmsys.org/?leaderboard | |
from langchain.llms import HuggingFaceHub | |
llm_hf = HuggingFaceHub( | |
repo_id="google/flan-t5-xl", | |
model_kwargs={"temperature":0.9 } | |
) | |
text = "Why did the chicken cross the road?" | |
print(llm_hf(text)) | |