Update app.py
Browse files
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
|
|
|
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
|
30 |
model=llm,
|
31 |
-
max_steps=15,
|
32 |
-
|
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 |
|