rsobieski commited on
Commit
6439d50
·
verified ·
1 Parent(s): 5e0e334

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,6 +47,7 @@ def get_to_numbers_doing_brrrr(number1: int, number2: int) -> int:
47
 
48
 
49
  final_answer = FinalAnswerTool()
 
50
 
51
  # 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:
52
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -68,7 +69,7 @@ with open("prompts.yaml", 'r') as stream:
68
 
69
  agent = CodeAgent(
70
  model=model,
71
- tools=[final_answer], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,
 
47
 
48
 
49
  final_answer = FinalAnswerTool()
50
+ web_search = DuckDuckGoSearchTool()
51
 
52
  # 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:
53
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
69
 
70
  agent = CodeAgent(
71
  model=model,
72
+ tools=[final_answer,web_search], ## add your tools here (don't remove final answer)
73
  max_steps=6,
74
  verbosity_level=1,
75
  grammar=None,