jarguello76 commited on
Commit
9ce73ef
·
verified ·
1 Parent(s): 1876108

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ class GAIAAgent:
38
  self.llm = HuggingFaceEndpoint(
39
  repo_id="google/flan-t5-xl", # You can replace this with another model
40
  temperature=0.3,
41
- model_kwargs={"max_length": 256} # ✅ Fix: pass max_length via model_kwargs
42
  )
43
  self.tools = [search_web, run_code_snippet]
44
  self.agent = initialize_agent(
 
38
  self.llm = HuggingFaceEndpoint(
39
  repo_id="google/flan-t5-xl", # You can replace this with another model
40
  temperature=0.3,
41
+ # model_kwargs={"max_length": 256} # ✅ Fix: pass max_length via model_kwargs
42
  )
43
  self.tools = [search_web, run_code_snippet]
44
  self.agent = initialize_agent(