Wajahat698 commited on
Commit
9c9d85f
·
verified ·
1 Parent(s): 459f5f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def convert_docx_to_md(file):
115
  """
116
  try:
117
  # Read the file
118
- doc = DocxDocument(uploaded_file)
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