pedrogaprieto commited on
Commit
96fc40c
·
verified ·
1 Parent(s): 6087bfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -3,7 +3,8 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
6
- from smolagents import CodeAgent, LiteLLMModel, VisitWebpageTool, FinalAnswerTool
 
7
 
8
  # (Keep Constants as is)
9
  # --- Constants ---
@@ -26,11 +27,10 @@ llm = LiteLLMModel(
26
 
27
  # Create Alfred with all the tools
28
  agent = CodeAgent(
29
- tools=[web_search_tool, VisitWebpageTool(), FinalAnswerTool()],
30
  model=llm,
31
- max_steps=15,
32
- #add_base_tools=False, # Add any additional base tools
33
- verbosity_level=2,
34
  planning_interval=3 # Enable planning every 3 steps
35
  )
36
 
 
3
  import requests
4
  import inspect
5
  import pandas as pd
6
+ from smolagents import CodeAgent, LiteLLMModel
7
+ #, VisitWebpageTool, FinalAnswerTool
8
 
9
  # (Keep Constants as is)
10
  # --- Constants ---
 
27
 
28
  # Create Alfred with all the tools
29
  agent = CodeAgent(
30
+ tools=[web_search_tool],
31
  model=llm,
32
+ # max_steps=15,
33
+ add_base_tools=True, # Add any additional base tools
 
34
  planning_interval=3 # Enable planning every 3 steps
35
  )
36