AksharaSachin commited on
Commit
63070c0
·
verified ·
1 Parent(s): d37ac86

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -3
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
- repo_id="google/flan-t5-base",
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