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