Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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())
|