Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
-
from smolagents import CodeAgent, LiteLLMModel, VisitWebpageTool
|
7 |
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
@@ -26,7 +26,7 @@ llm = LiteLLMModel(
|
|
26 |
|
27 |
# Create Alfred with all the tools
|
28 |
agent = CodeAgent(
|
29 |
-
tools=[web_search_tool, VisitWebpageTool()],
|
30 |
model=llm,
|
31 |
max_steps=10,
|
32 |
#add_base_tools=False, # Add any additional base tools
|
|
|
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 |
|
27 |
# Create Alfred with all the tools
|
28 |
agent = CodeAgent(
|
29 |
+
tools=[web_search_tool, VisitWebpageTool(), FinalAnswerTool()],
|
30 |
model=llm,
|
31 |
max_steps=10,
|
32 |
#add_base_tools=False, # Add any additional base tools
|