Allen Park commited on
Commit
7144bca
·
1 Parent(s): 6efea88

fix(remove io.BytesIO when taking in docx file)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ def extract_text_pymupdf(file):
145
  return text
146
 
147
  def extract_text_python_docx(file):
148
- doc = Document(io.BytesIO(file))
149
  text = ""
150
  for paragraph in doc.paragraphs:
151
  text += paragraph.text + '\n'
 
145
  return text
146
 
147
  def extract_text_python_docx(file):
148
+ doc = Document(file)
149
  text = ""
150
  for paragraph in doc.paragraphs:
151
  text += paragraph.text + '\n'