keenthinker commited on
Commit
570af49
·
verified ·
1 Parent(s): ae7a494

Update tools/visit_webpage.py

Browse files

Added import to the RegEx module 're' using to remove the multiple line breaks (currently line 34). Otherwise the execution of the tool fails, because the module import is missing.

Files changed (1) hide show
  1. tools/visit_webpage.py +1 -0
tools/visit_webpage.py CHANGED
@@ -3,6 +3,7 @@ from smolagents.tools import Tool
3
  import requests
4
  import markdownify
5
  import smolagents
 
6
 
7
  class VisitWebpageTool(Tool):
8
  name = "visit_webpage"
 
3
  import requests
4
  import markdownify
5
  import smolagents
6
+ import re
7
 
8
  class VisitWebpageTool(Tool):
9
  name = "visit_webpage"