Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 37 |
|
| 38 |
@tool
|
| 39 |
def visit_webpage(url: str) -> str:
|
| 40 |
-
"""Fetches raw HTML content of a web page.
|
|
|
|
|
|
|
| 41 |
try:
|
| 42 |
response = requests.get(url, timeout=5)
|
| 43 |
return response.text[:5000] # limit output length
|
|
|
|
| 37 |
|
| 38 |
@tool
|
| 39 |
def visit_webpage(url: str) -> str:
|
| 40 |
+
"""Fetches raw HTML content of a web page.
|
| 41 |
+
Args:
|
| 42 |
+
url: The url of the webpage"""
|
| 43 |
try:
|
| 44 |
response = requests.get(url, timeout=5)
|
| 45 |
return response.text[:5000] # limit output length
|