Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,10 +24,12 @@ urls = [
|
|
| 24 |
]
|
| 25 |
for i, url in enumerate(urls):
|
| 26 |
resp = requests.get(url)
|
| 27 |
-
soup = BeautifulSoup(resp.text, "html.parser")
|
| 28 |
-
text = soup.get_text(separator="\n", strip=True)
|
| 29 |
with open(f"./data/doc_{i}.txt", "w", encoding="utf-8") as f:
|
| 30 |
-
f.write(text)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# 初始化 OpenVINO 模型
|
| 33 |
model_id = "hsuwill000/MiniCPM3-4B_int4_ov"
|
|
|
|
| 24 |
]
|
| 25 |
for i, url in enumerate(urls):
|
| 26 |
resp = requests.get(url)
|
|
|
|
|
|
|
| 27 |
with open(f"./data/doc_{i}.txt", "w", encoding="utf-8") as f:
|
| 28 |
+
f.write(resp.text)
|
| 29 |
+
#soup = BeautifulSoup(resp.text, "html.parser")
|
| 30 |
+
#text = soup.get_text(separator="\n", strip=True)
|
| 31 |
+
#with open(f"./data/doc_{i}.txt", "w", encoding="utf-8") as f:
|
| 32 |
+
# f.write(text)
|
| 33 |
|
| 34 |
# 初始化 OpenVINO 模型
|
| 35 |
model_id = "hsuwill000/MiniCPM3-4B_int4_ov"
|