hsuwill000 commited on
Commit
47f6bfe
·
verified ·
1 Parent(s): be9030e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -25,6 +25,7 @@ urls = [
25
  ]
26
  for i, url in enumerate(urls):
27
  resp = requests.get(url)
 
28
  with open(f"./data/doc_{i}.txt", "w", encoding="utf-8") as f:
29
  f.write(resp.text)
30
  #soup = BeautifulSoup(resp.text, "html.parser")
 
25
  ]
26
  for i, url in enumerate(urls):
27
  resp = requests.get(url)
28
+ resp.encoding = 'utf-8'
29
  with open(f"./data/doc_{i}.txt", "w", encoding="utf-8") as f:
30
  f.write(resp.text)
31
  #soup = BeautifulSoup(resp.text, "html.parser")