Carcar4 commited on
Commit
14d2ad6
·
verified ·
1 Parent(s): 38abf0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ def MyCustomSearch(search_term:str, max_results:int) -> str:
49
  except Exceiption as e:
50
  return f"Error search with duckduck go search '{search_term}' : {str(e)}"
51
 
52
- web_search_tool = DuckDuckGoSearchTool()
53
 
54
  final_answer = FinalAnswerTool()
55
 
@@ -72,7 +72,7 @@ with open("prompts.yaml", 'r') as stream:
72
 
73
  agent = CodeAgent(
74
  model=model,
75
- tools=[final_answer, get_current_time_in_timezone, web_search_tool], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,
 
49
  except Exceiption as e:
50
  return f"Error search with duckduck go search '{search_term}' : {str(e)}"
51
 
52
+ web_search = DuckDuckGoSearchTool()
53
 
54
  final_answer = FinalAnswerTool()
55
 
 
72
 
73
  agent = CodeAgent(
74
  model=model,
75
+ tools=[final_answer, get_current_time_in_timezone, web_search], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,