hsuwill000 commited on
Commit
8075ee2
·
verified ·
1 Parent(s): 0bc0417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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"