JoeSos commited on
Commit
2b0df6b
·
verified ·
1 Parent(s): 2453b1d

Update app.py

Browse files

Eliminated 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.

Files changed (1) hide show
  1. app.py +1 -1
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(),fetch_weather(),calculator()], ## add your tools here (don't remove final answer)
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,