blade57 commited on
Commit
cae672a
·
verified ·
1 Parent(s): 2d48b36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -69,6 +69,8 @@ def get_scientific_notation(number_to_convert:int)-> str: #it's import to specif
69
  return f"{number_to_convert:.2e}"
70
 
71
  final_answer = FinalAnswerTool()
 
 
72
 
73
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
74
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -89,7 +91,7 @@ with open("prompts.yaml", 'r') as stream:
89
 
90
  agent = CodeAgent(
91
  model=model,
92
- tools=[final_answer, check_is_prime, get_scientific_notation], ## add your tools here (don't remove final answer)
93
  max_steps=6,
94
  verbosity_level=1,
95
  grammar=None,
 
69
  return f"{number_to_convert:.2e}"
70
 
71
  final_answer = FinalAnswerTool()
72
+ vist_webpage = VisitWebpageTool()
73
+ web_search = DuckDuckGoSearchTool()
74
 
75
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
76
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
91
 
92
  agent = CodeAgent(
93
  model=model,
94
+ tools=[final_answer, check_is_prime, get_scientific_notation, visit_webpage, web_search], ## add your tools here (don't remove final answer)
95
  max_steps=6,
96
  verbosity_level=1,
97
  grammar=None,