Chris4K commited on
Commit
0f14421
1 Parent(s): 998f311

initial llm commit - chicken crossen road, why?

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # https://chat.lmsys.org/?leaderboard
2
+ from langchain.llms import HuggingFaceHub
3
+
4
+
5
+ llm_hf = HuggingFaceHub(
6
+ repo_id="google/flan-t5-xl",
7
+ model_kwargs={"temperature":0.9 }
8
+ )
9
+
10
+ text = "Why did the chicken cross the road?"
11
+
12
+ print(llm_hf(text))