mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-06 11:05:26 +00:00
fix : issue with browser
This commit is contained in:
parent
36b80dc758
commit
8ccb6f4d77
@ -156,6 +156,7 @@ class Browser:
|
||||
element.decompose()
|
||||
|
||||
|
||||
text = soup.get_text()
|
||||
lines = (line.strip() for line in text.splitlines())
|
||||
chunks = (phrase.strip() for line in lines for phrase in line.split(" "))
|
||||
text = "\n".join(chunk for chunk in chunks if chunk and self.is_sentence(chunk))
|
||||
|
Loading…
x
Reference in New Issue
Block a user