jhealy1 commited on
Commit
975a609
·
verified ·
1 Parent(s): c68ea9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -53,7 +53,8 @@ def describe_plant_image(user_query: str, image_url: str) -> str:
53
  )
54
 
55
  return response.choices[0].message.content
56
-
 
57
  final_answer = FinalAnswerTool()
58
 
59
  # 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:
@@ -75,7 +76,7 @@ with open("prompts.yaml", 'r') as stream:
75
 
76
  agent = CodeAgent(
77
  model=model,
78
- tools=[DuckDuckGoSearchTool, describe_plant_image, final_answer], ## add your tools here (don't remove final answer)
79
  max_steps=6,
80
  verbosity_level=1,
81
  grammar=None,
 
53
  )
54
 
55
  return response.choices[0].message.content
56
+
57
+ query_internet = DuckDuckGoSearchTool()
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:
 
76
 
77
  agent = CodeAgent(
78
  model=model,
79
+ tools=[query_internet, describe_plant_image, final_answer], ## add your tools here (don't remove final answer)
80
  max_steps=6,
81
  verbosity_level=1,
82
  grammar=None,