Baladuri commited on
Commit
4b5d736
·
verified ·
1 Parent(s): fa1dbfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool, GoogleSearchTool
2
  import datetime
3
  import requests
4
  import pytz
@@ -6,8 +6,6 @@ import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
- import pydantic
10
- print(pydantic.__version__)
11
 
12
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
13
  # @tool
@@ -58,7 +56,10 @@ with open("prompts.yaml", 'r') as stream:
58
 
59
  agent = CodeAgent(
60
  model=model,
61
- tools=[final_answer, image_generation_tool, websearch_tool], ## add your tools here (don't remove final answer)
 
 
 
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,
 
1
+ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool, GoogleSearchTool, VisitWebpageTool
2
  import datetime
3
  import requests
4
  import pytz
 
6
  from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
 
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  # @tool
 
56
 
57
  agent = CodeAgent(
58
  model=model,
59
+ tools=[final_answer,
60
+ image_generation_tool,
61
+ websearch_tool,
62
+ VisitWebpageTool()], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,