awacke1 commited on
Commit
5661371
·
1 Parent(s): 274517a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def read_file_content(file):
46
  content = BeautifulSoup(file, "html.parser")
47
  return content.text
48
  elif file.type == "application/xml" or file.type == "text/xml":
49
- content = BeautifulSoup(file, "lxml")
50
  return content.text
51
  elif file.type == "text/plain":
52
  return file.getvalue().decode()
 
46
  content = BeautifulSoup(file, "html.parser")
47
  return content.text
48
  elif file.type == "application/xml" or file.type == "text/xml":
49
+ content = BeautifulSoup(file, "xml")
50
  return content.text
51
  elif file.type == "text/plain":
52
  return file.getvalue().decode()