zasharepw77 commited on
Commit
0d4931c
·
1 Parent(s): e2ebab2

Ошибка поправил код 5

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,10 +25,10 @@ class WebpageVisitorTool(Tool):
25
 
26
  output_type = "string"
27
 
28
- def call(self, inputs):
29
  try:
30
  # Send a GET request to the URL
31
- response = requests.get(inputs["url"])
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