kpbotla commited on
Commit
e830f96
·
verified ·
1 Parent(s): 14120e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -122,9 +122,11 @@ hf_token = os.environ.get("HUGGINGFACEHUB_API_TOKEN")
122
  llm = HuggingFaceEndpoint(
123
  repo_id="google/flan-t5-xl",
124
  huggingfacehub_api_token=hf_token,
125
- model_kwargs={"temperature": 0.2, "max_length": 1024}
 
126
  )
127
 
 
128
  tools = [wiki_tool, youtube_tool, audio_tool, excel_tool, image_tool, repl_tool]
129
  agent_instance = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)
130
 
 
122
  llm = HuggingFaceEndpoint(
123
  repo_id="google/flan-t5-xl",
124
  huggingfacehub_api_token=hf_token,
125
+ temperature=0.2,
126
+ max_length=1024
127
  )
128
 
129
+
130
  tools = [wiki_tool, youtube_tool, audio_tool, excel_tool, image_tool, repl_tool]
131
  agent_instance = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)
132