Skip to content

Commit 3e86080

Browse files
committed
2 parents c5582b3 + 97953ef commit 3e86080

File tree

2 files changed

+130
-5
lines changed

2 files changed

+130
-5
lines changed

backend/app.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,15 @@ def read_docx(file_path):
339339
return text
340340

341341

342-
# import pypandoc
343-
# pypandoc.download_pandoc()
342+
import pypandoc
343+
pypandoc.download_pandoc()
344344

345345

346346
def convert_docx_to_text(docx_file_path):
347347
# 转换文件为纯文本格式,并返回转换后的文本内容
348-
# text = pypandoc.convert_file(docx_file_path, 'plain')
349-
# return text
350-
return None
348+
text = pypandoc.convert_file(docx_file_path, 'plain')
349+
return text
350+
# return None
351351

352352

353353
def read_pdf(file_path):

frontend/package-lock.json

Lines changed: 125 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)