Raffaele Terribile commited on
Commit
226eef1
·
unverified ·
1 Parent(s): 951d6dc

Rimuovi GoogleSearchTool, WebSearchTool, WikipediaSearchTool

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  import inspect
5
  import pandas as pd
6
 
7
- from smolagents import CodeAgent, InferenceClientModel, GoogleSearchTool, WebSearchTool, PythonInterpreterTool, WikipediaSearchTool, VisitWebpageTool, FinalAnswerTool, Tool, tool #DuckDuckGoSearchTool (SERPAPI_API_KEY)
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.")