Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def convert_docx_to_md(file):
|
|
| 115 |
"""
|
| 116 |
try:
|
| 117 |
# Read the file
|
| 118 |
-
doc =
|
| 119 |
# Extract all text
|
| 120 |
text = "\n".join([paragraph.text for paragraph in doc.paragraphs])
|
| 121 |
if not text.strip(): # Handle empty content
|
|
|
|
| 115 |
"""
|
| 116 |
try:
|
| 117 |
# Read the file
|
| 118 |
+
doc = docx.Document(file)
|
| 119 |
# Extract all text
|
| 120 |
text = "\n".join([paragraph.text for paragraph in doc.paragraphs])
|
| 121 |
if not text.strip(): # Handle empty content
|