awacke1 commited on
Commit
5d9526b
·
1 Parent(s): 9103f91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def read_file_content(file):
55
  elif file.type == "application/xml" or file.type == "text/xml":
56
  tree = ET.parse(file)
57
  root = tree.getroot()
58
- return ElementTree.tostring(root, encoding='unicode')
59
  elif file.type == "text/plain":
60
  return file.getvalue().decode()
61
  else:
 
55
  elif file.type == "application/xml" or file.type == "text/xml":
56
  tree = ET.parse(file)
57
  root = tree.getroot()
58
+ return ET.tostring(root, encoding='unicode')
59
  elif file.type == "text/plain":
60
  return file.getvalue().decode()
61
  else: