Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisir0909 committed Dec 26, 2024
1 parent 7c3e9e2 commit 32cde81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/core/workflow/nodes/document_extractor/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import pandas as pd
import pypdfium2 # type: ignore
import yaml # type: ignore
from docx.table import Table
from docx.text.paragraph import Paragraph

from configs import dify_config
from core.file import File, FileTransferMethod, file_manager
Expand Down Expand Up @@ -192,7 +194,7 @@ def _extract_text_from_doc(file_content: bytes) -> str:
text = []

# Keep track of paragraph and table positions
content_items = []
content_items: list[tuple[int, str, Table | Paragraph]] = []

# Process paragraphs and tables
for i, paragraph in enumerate(doc.paragraphs):
Expand Down

0 comments on commit 32cde81

Please sign in to comment.