giqua commited on
Commit
036dfb2
·
verified ·
1 Parent(s): 9678eee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,6 +37,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
37
 
38
 
39
  final_answer = FinalAnswerTool()
 
40
  model = HfApiModel(
41
  max_tokens=2096,
42
  temperature=0.5,
@@ -53,7 +54,7 @@ with open("prompts.yaml", 'r') as stream:
53
 
54
  agent = CodeAgent(
55
  model=model,
56
- tools=[my_cutom_tool,DuckDuckGoSearchTool,get_current_time_in_timezone,image_generation_tool,final_answer], ## add your tools here (don't remove final answer)
57
  max_steps=6,
58
  verbosity_level=1,
59
  grammar=None,
 
37
 
38
 
39
  final_answer = FinalAnswerTool()
40
+ duck_tool = DuckDuckGoSearchTool()
41
  model = HfApiModel(
42
  max_tokens=2096,
43
  temperature=0.5,
 
54
 
55
  agent = CodeAgent(
56
  model=model,
57
+ tools=[my_cutom_tool,duck_tool,get_current_time_in_timezone,image_generation_tool,final_answer], ## add your tools here (don't remove final answer)
58
  max_steps=6,
59
  verbosity_level=1,
60
  grammar=None,