Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def read_file_content(file,max_length):
|
|
100 |
elif file.type == "application/xml" or file.type == "text/xml":
|
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()
|
|
|
100 |
elif file.type == "application/xml" or file.type == "text/xml":
|
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()
|