Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,6 @@ class BasicAgent:
|
|
77 |
print("BasicAgent initialized.")
|
78 |
self.agent = CodeAgent(
|
79 |
model=model,
|
80 |
-
tokenizer=tokenizer,
|
81 |
tools=[web_search,python_interpreter,visit_webpage_tool,model_math_tool],
|
82 |
max_steps=1,
|
83 |
verbosity_level=1,
|
@@ -88,6 +87,7 @@ class BasicAgent:
|
|
88 |
|
89 |
def __call__(self, question: str) -> str:
|
90 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
91 |
answer = self.agent.run(question)
|
92 |
return answer
|
93 |
|
|
|
77 |
print("BasicAgent initialized.")
|
78 |
self.agent = CodeAgent(
|
79 |
model=model,
|
|
|
80 |
tools=[web_search,python_interpreter,visit_webpage_tool,model_math_tool],
|
81 |
max_steps=1,
|
82 |
verbosity_level=1,
|
|
|
87 |
|
88 |
def __call__(self, question: str) -> str:
|
89 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
90 |
+
|
91 |
answer = self.agent.run(question)
|
92 |
return answer
|
93 |
|