Spaces:
Sleeping
Sleeping
zasharepw77
commited on
Commit
·
0d4931c
1
Parent(s):
e2ebab2
Ошибка поправил код 5
Browse files
app.py
CHANGED
|
@@ -25,10 +25,10 @@ class WebpageVisitorTool(Tool):
|
|
| 25 |
|
| 26 |
output_type = "string"
|
| 27 |
|
| 28 |
-
def
|
| 29 |
try:
|
| 30 |
# Send a GET request to the URL
|
| 31 |
-
response = requests.get(
|
| 32 |
response.raise_for_status() # Raise an exception for bad status codes
|
| 33 |
|
| 34 |
# Convert the HTML content to Markdown
|
|
|
|
| 25 |
|
| 26 |
output_type = "string"
|
| 27 |
|
| 28 |
+
def forward(self, url: str) -> str:
|
| 29 |
try:
|
| 30 |
# Send a GET request to the URL
|
| 31 |
+
response = requests.get(url)
|
| 32 |
response.raise_for_status() # Raise an exception for bad status codes
|
| 33 |
|
| 34 |
# Convert the HTML content to Markdown
|