We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bef71f commit f391548Copy full SHA for f391548
DocSum/docsum.py
@@ -106,7 +106,7 @@ async def read_text_from_file(file: UploadFile):
106
"text/plain",
107
"application/pdf",
108
"application/octet-stream",
109
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
110
)
111
112
file_content = None
@@ -138,7 +138,7 @@ async def read_text_from_file(file: UploadFile):
138
# read docx file
139
if ctype in (
140
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
141
- "application/octet-stream"
+ "application/octet-stream",
142
):
143
file_content = docx2txt.process(tmp.name)
144
0 commit comments