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