APRG commited on
Commit
8c05954
·
verified ·
1 Parent(s): 0c737f1

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +4 -4
tools.py CHANGED
@@ -6,6 +6,7 @@ import requests
6
  from bs4 import BeautifulSoup
7
  import openpyxl
8
  import wikipedia
 
9
 
10
  class WikipediaTool(Tool):
11
  name = "wikipedia_api"
@@ -33,10 +34,9 @@ class ExcelTool(Tool):
33
  }
34
  output_type = "string"
35
 
36
- def forward(self, question: str):
37
- search_tool = DuckDuckGoSearchTool()
38
- result = search_tool(question)
39
- return result
40
 
41
  class WebscraperTool(Tool):
42
  name = "webscraper"
 
6
  from bs4 import BeautifulSoup
7
  import openpyxl
8
  import wikipedia
9
+ import pandas as pd
10
 
11
  class WikipediaTool(Tool):
12
  name = "wikipedia_api"
 
34
  }
35
  output_type = "string"
36
 
37
+ def forward(self, path: str):
38
+ df = pd.read_excel(path, engine = "openpyxl")
39
+ return df
 
40
 
41
  class WebscraperTool(Tool):
42
  name = "webscraper"