carexl8 commited on
Commit
2d823bf
·
verified ·
1 Parent(s): 258dd0a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ def convert_temp(arg1:float, arg2:str)-> float: #it's import to specify the retu
49
  except Exception as e:
50
  return f"Error converting temperature from '{arg1}'"
51
 
52
-
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, convert_temp, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,
 
49
  except Exception as e:
50
  return f"Error converting temperature from '{arg1}'"
51
 
52
+ web_search = DuckDuckGoSearchTool()
53
 
54
  final_answer = FinalAnswerTool()
55
 
 
72
 
73
  agent = CodeAgent(
74
  model=model,
75
+ tools=[final_answer, convert_temp, web_search], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,