Spaces:
Running
Running
Update app.py
Browse filesEliminated the parenthesis from the tools, so they wouldn't be executed immediately. Instead they will be passed as function objects, which should avoid the missing positional argument error.
app.py
CHANGED
@@ -66,7 +66,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
66 |
|
67 |
agent = CodeAgent(
|
68 |
model=model,
|
69 |
-
tools=[final_answer, get_current_time_in_timezone
|
70 |
max_steps=6,
|
71 |
verbosity_level=1,
|
72 |
grammar=None,
|
|
|
66 |
|
67 |
agent = CodeAgent(
|
68 |
model=model,
|
69 |
+
tools=[final_answer, get_current_time_in_timezone,fetch_weather,calculator], ## add your tools here (don't remove final answer)
|
70 |
max_steps=6,
|
71 |
verbosity_level=1,
|
72 |
grammar=None,
|