Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 10, 2024
1 parent 0d32ab1 commit 5f9cd7a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

from langflow.base.langchain_utilities.spider_constants import MODES
from langflow.custom import Component
from langflow.io import (BoolInput, DictInput, DropdownInput, IntInput, Output,
SecretStrInput, StrInput)
from langflow.io import BoolInput, DictInput, DropdownInput, IntInput, Output, SecretStrInput, StrInput
from langflow.schema import Data


Expand Down Expand Up @@ -90,7 +89,7 @@ class SpiderTool(Component):

def crawl(self) -> list[Data]:
if self.params:
parameters = self.params['data']
parameters = self.params["data"]
else:
parameters = {
"limit": self.limit if self.limit else None,
Expand Down Expand Up @@ -119,7 +118,9 @@ def crawl(self) -> list[Data]:

for record in result:
if self.metadata:
records.append(Data(data={"content": record["content"], "url": record["url"], "metadata": record["metadata"]}))
records.append(
Data(data={"content": record["content"], "url": record["url"], "metadata": record["metadata"]})
)
else:
records.append(Data(data={"content": record["content"], "url": record["url"]}))
return records

0 comments on commit 5f9cd7a

Please sign in to comment.