Update agent.py
Browse files
agent.py
CHANGED
@@ -46,9 +46,8 @@ def build_agent():
|
|
46 |
# huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
47 |
# )
|
48 |
|
49 |
-
llm = HuggingFaceHub(
|
50 |
-
|
51 |
-
model_kwargs={"temperature": 0.2, "max_new_tokens": 256})
|
52 |
|
53 |
tools = [use_wikipedia_tool, use_search_tool]
|
54 |
|
|
|
46 |
# huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
47 |
# )
|
48 |
|
49 |
+
llm = HuggingFaceHub(repo_id="google/flan-t5-base",
|
50 |
+
task="text2text-generation")
|
|
|
51 |
|
52 |
tools = [use_wikipedia_tool, use_search_tool]
|
53 |
|