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
|
7 |
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
@@ -25,7 +25,7 @@ llm = LiteLLMModel(
|
|
25 |
|
26 |
|
27 |
# Create Alfred with all the tools
|
28 |
-
agent =
|
29 |
tools=[web_search_tool, VisitWebpageTool(), FinalAnswerTool()],
|
30 |
model=llm,
|
31 |
max_steps=10,
|
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
+
from smolagents import ToolCallingAgent, LiteLLMModel, VisitWebpageTool, FinalAnswerTool
|
7 |
|
8 |
# (Keep Constants as is)
|
9 |
# --- Constants ---
|
|
|
25 |
|
26 |
|
27 |
# Create Alfred with all the tools
|
28 |
+
agent = ToolCallingAgentAgent(
|
29 |
tools=[web_search_tool, VisitWebpageTool(), FinalAnswerTool()],
|
30 |
model=llm,
|
31 |
max_steps=10,
|