Raffaele Terribile commited on
Commit
9e1e6fe
·
unverified ·
1 Parent(s): 226eef1

Ripristina WebSearchTool e WikipediaSearchTool

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,7 +4,7 @@ import requests
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 ---
@@ -31,9 +31,9 @@ class FirstAgent:
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, WebSearchTool, WikipediaSearchTool, FinalAnswerTool, Tool, tool # GoogleSearchTool, DuckDuckGoSearchTool (SERPAPI_API_KEY)
8
 
9
  # (Keep Constants as is)
10
  # --- Constants ---
 
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.")