XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update internet.py

d53db732
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/gui/server/internet.py +1 -1
@@ -67,7 +67,7 @@ def scrape_text(html: str, max_words: int = None) -> str:
67 67 if select:
68 68 select.extract()
69 69 clean_text = ""
70 for paragraph in soup.select("p"):
70 for paragraph in soup.select("p, h1, h2, h3, h4, h5, h6"):
71 71 text = paragraph.get_text()
72 72 for line in text.splitlines():
73 73 words = []