initial llm commit - chicken crossen road, why?
Browse files
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))
|