Raffaele Terribile
commited on
Rimuovi GoogleSearchTool, WebSearchTool, WikipediaSearchTool
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import requests
|
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
|
7 |
-
from smolagents import CodeAgent, InferenceClientModel,
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
@@ -30,10 +30,10 @@ class FirstAgent:
|
|
30 |
tools=[
|
31 |
# DuckDuckGoSearchTool(),
|
32 |
InferenceClientModel(),
|
33 |
-
GoogleSearchTool(),
|
34 |
-
WebSearchTool(),
|
35 |
PythonInterpreterTool(),
|
36 |
-
WikipediaSearchTool(),
|
37 |
VisitWebpageTool(),
|
38 |
FinalAnswerTool,
|
39 |
Tool(name="invert_sentence", func=invert_sentence, description="Inverts the order of characters in a sentence.")
|
|
|
4 |
import inspect
|
5 |
import pandas as pd
|
6 |
|
7 |
+
from smolagents import CodeAgent, InferenceClientModel, VisitWebpageTool, PythonInterpreterTool, FinalAnswerTool, Tool, tool # GoogleSearchTool, WebSearchTool, WikipediaSearchTool, DuckDuckGoSearchTool (SERPAPI_API_KEY)
|
8 |
|
9 |
# (Keep Constants as is)
|
10 |
# --- Constants ---
|
|
|
30 |
tools=[
|
31 |
# DuckDuckGoSearchTool(),
|
32 |
InferenceClientModel(),
|
33 |
+
# GoogleSearchTool(),
|
34 |
+
# WebSearchTool(),
|
35 |
PythonInterpreterTool(),
|
36 |
+
# WikipediaSearchTool(),
|
37 |
VisitWebpageTool(),
|
38 |
FinalAnswerTool,
|
39 |
Tool(name="invert_sentence", func=invert_sentence, description="Inverts the order of characters in a sentence.")
|