giulia-fontanella commited on
Commit
218c0cf
·
verified ·
1 Parent(s): e5a6189

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +0 -10
tools.py CHANGED
@@ -47,15 +47,5 @@ def extract_text(img_path: str) -> str:
47
  print(error_msg)
48
  return ""
49
 
50
-
51
- def web_search(query: str):
52
- """Performs a web search using SerpAPI."""
53
- search = GoogleSearch({
54
- "q": query,
55
- "num": 5,
56
- "api_key": "your_serpapi_key"
57
- })
58
- results = search.get_dict()["organic_results"]
59
- return results
60
 
61
 
 
47
  print(error_msg)
48
  return ""
49
 
 
 
 
 
 
 
 
 
 
 
50
 
51