Spaces:
Runtime error
Runtime error
Allen Park
commited on
Commit
·
7144bca
1
Parent(s):
6efea88
fix(remove io.BytesIO when taking in docx file)
Browse files
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(
|
| 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'
|