awacke1 commited on
Commit
8d8fc5c
β€’
1 Parent(s): db9b250

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ def read_file_content(file,max_length):
101
  tree = ET.parse(file)
102
  root = tree.getroot()
103
  xml = CompressXML(ET.tostring(root, encoding='unicode'))
104
- return xml(:max_length)
105
  elif file.type == "text/markdown" or file.type == "text/md":
106
  md = mistune.create_markdown()
107
  content = md(file.read().decode())
 
101
  tree = ET.parse(file)
102
  root = tree.getroot()
103
  xml = CompressXML(ET.tostring(root, encoding='unicode'))
104
+ return xml
105
  elif file.type == "text/markdown" or file.type == "text/md":
106
  md = mistune.create_markdown()
107
  content = md(file.read().decode())