Spaces:
Sleeping
Sleeping
Commit
·
a060213
1
Parent(s):
648a915
updated with token
Browse files- agent.py +1 -0
- requirements.txt +5 -5
agent.py
CHANGED
@@ -6,6 +6,7 @@ import os
|
|
6 |
# Load LLM from Hugging Face Hub
|
7 |
llm = HuggingFaceHub(
|
8 |
repo_id="google/flan-t5-large",
|
|
|
9 |
model_kwargs={"temperature": 0.7, "max_length": 512},
|
10 |
)
|
11 |
|
|
|
6 |
# Load LLM from Hugging Face Hub
|
7 |
llm = HuggingFaceHub(
|
8 |
repo_id="google/flan-t5-large",
|
9 |
+
huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API_TOKEN"],
|
10 |
model_kwargs={"temperature": 0.7, "max_length": 512},
|
11 |
)
|
12 |
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
gradio
|
2 |
-
langchain
|
3 |
-
langchain-community
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
1 |
gradio
|
2 |
+
langchain-core
|
3 |
+
langchain-community
|
4 |
+
langchain-huggingface
|
5 |
+
transformers
|
6 |
+
serpapi
|