diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py index 8dea28b1500..9d15878b84f 100644 --- a/g4f/gui/server/internet.py +++ b/g4f/gui/server/internet.py @@ -46,8 +46,6 @@ def set_text(self, text: str): def scrape_text(html: str, max_words: int = None) -> str: soup = BeautifulSoup(html, "html.parser") - for exclude in soup(["script", "style"]): - exclude.extract() for selector in [ "main", ".main-content-wrapper",