File size: 247 Bytes
0f14421
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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))