baskadir commited on
Commit
2114688
·
verified ·
1 Parent(s): cfe0387

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -57,6 +57,7 @@ def find_hotels(location: str, price_range: str) -> list:
57
 
58
  final_answer = FinalAnswerTool()
59
 
 
60
  # 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:
61
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
62
 
@@ -76,7 +77,7 @@ with open("prompts.yaml", 'r') as stream:
76
 
77
  agent = CodeAgent(
78
  model=model,
79
- tools=[final_answer], ## add your tools here (don't remove final answer)
80
  max_steps=6,
81
  verbosity_level=1,
82
  grammar=None,
 
57
 
58
  final_answer = FinalAnswerTool()
59
 
60
+
61
  # 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:
62
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
63
 
 
77
 
78
  agent = CodeAgent(
79
  model=model,
80
+ tools=[final_answer, DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)
81
  max_steps=6,
82
  verbosity_level=1,
83
  grammar=None,