Spaces:
Running
Running
added 70 sec time out
Browse files- tools/visit_webpage.py +2 -1
tools/visit_webpage.py
CHANGED
@@ -23,7 +23,8 @@ class VisitWebpageTool(Tool):
|
|
23 |
) from e
|
24 |
try:
|
25 |
# Send a GET request to the URL with a 20-second timeout
|
26 |
-
|
|
|
27 |
response.raise_for_status() # Raise an exception for bad status codes
|
28 |
|
29 |
# Convert the HTML content to Markdown
|
|
|
23 |
) from e
|
24 |
try:
|
25 |
# Send a GET request to the URL with a 20-second timeout
|
26 |
+
# adjust to 70 second time out
|
27 |
+
response = requests.get(url, timeout=70)
|
28 |
response.raise_for_status() # Raise an exception for bad status codes
|
29 |
|
30 |
# Convert the HTML content to Markdown
|