Spaces:
Sleeping
Sleeping
Update visit_webpage.py
Browse files- visit_webpage.py +2 -1
visit_webpage.py
CHANGED
|
@@ -33,7 +33,8 @@ class VisitWebpageTool(Tool):
|
|
| 33 |
# Remove multiple line breaks
|
| 34 |
markdown_content = re.sub(r"\n{3,}", "\n\n", markdown_content)
|
| 35 |
|
| 36 |
-
|
|
|
|
| 37 |
|
| 38 |
except requests.exceptions.Timeout:
|
| 39 |
return "The request timed out. Please try again later or check the URL."
|
|
|
|
| 33 |
# Remove multiple line breaks
|
| 34 |
markdown_content = re.sub(r"\n{3,}", "\n\n", markdown_content)
|
| 35 |
|
| 36 |
+
|
| 37 |
+
return truncate_content(markdown_content, 4000) #was 10000
|
| 38 |
|
| 39 |
except requests.exceptions.Timeout:
|
| 40 |
return "The request timed out. Please try again later or check the URL."
|