Update app.py
Browse files
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(
|