Bladeren bron

fix: wrong element object (#9868)

tags/0.10.2
virgosoy 1 jaar geleden
bovenliggende
commit
17cacf258e
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      api/core/rag/extractor/word_extractor.py

+ 1
- 1
api/core/rag/extractor/word_extractor.py Bestand weergeven

@@ -234,7 +234,7 @@ class WordExtractor(BaseExtractor):
def parse_paragraph(paragraph):
paragraph_content = []
for run in paragraph.runs:
if hasattr(run.element, "tag") and isinstance(element.tag, str) and run.element.tag.endswith("r"):
if hasattr(run.element, "tag") and isinstance(run.element.tag, str) and run.element.tag.endswith("r"):
drawing_elements = run.element.findall(
".//{http://schemas.openxmlformats.org/wordprocessingml/2006/main}drawing"
)

Laden…
Annuleren
Opslaan