DTStudios commited on
Commit
95f56e7
·
verified ·
1 Parent(s): 193ddf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -48,13 +48,16 @@ model = HfApiModel(
48
  temperature=0.5
49
  )
50
 
 
 
 
51
  tool=[
52
  add_numbers,
53
  get_current_time_in_timezone,
54
  ]
55
 
56
  agent = CodeAgent(
57
- tools=tool,
58
  model= model,
59
  add_base_tools=True, # still give web_search, visit_webpage, final_answer
60
  name="MyAgent",
 
48
  temperature=0.5
49
  )
50
 
51
+ with open("prompts.yaml", 'r') as stream:
52
+ prompt_templates = yaml.safe_load(stream)
53
+
54
  tool=[
55
  add_numbers,
56
  get_current_time_in_timezone,
57
  ]
58
 
59
  agent = CodeAgent(
60
+ tools=[add_numbers],[get_current_time_in_timezone],[FinalAnswerTool]
61
  model= model,
62
  add_base_tools=True, # still give web_search, visit_webpage, final_answer
63
  name="MyAgent",