Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import json
|
|
| 9 |
from transformers import AutoTokenizer, AutoModelForCausalLM , pipeline, TransformersEngine
|
| 10 |
import wikipedia
|
| 11 |
import torch
|
| 12 |
-
from tooling import ModelMathTool
|
| 13 |
|
| 14 |
# (Keep Constants as is)
|
| 15 |
# --- Constants ---
|
|
@@ -95,7 +95,7 @@ class BasicAgent:
|
|
| 95 |
print("BasicAgent initialized.")
|
| 96 |
self.agent = CodeAgent(
|
| 97 |
model=model,
|
| 98 |
-
tools=[web_search,python_interpreter,visit_webpage_tool],
|
| 99 |
max_steps=5,
|
| 100 |
verbosity_level=1,
|
| 101 |
grammar=None,
|
|
|
|
| 9 |
from transformers import AutoTokenizer, AutoModelForCausalLM , pipeline, TransformersEngine
|
| 10 |
import wikipedia
|
| 11 |
import torch
|
| 12 |
+
from tooling import ModelMathTool, WikiTool
|
| 13 |
|
| 14 |
# (Keep Constants as is)
|
| 15 |
# --- Constants ---
|
|
|
|
| 95 |
print("BasicAgent initialized.")
|
| 96 |
self.agent = CodeAgent(
|
| 97 |
model=model,
|
| 98 |
+
tools=[web_search,python_interpreter,visit_webpage_tool,wiki_tool],
|
| 99 |
max_steps=5,
|
| 100 |
verbosity_level=1,
|
| 101 |
grammar=None,
|