Spaces:
Sleeping
Sleeping
Update helpers.py
Browse files- helpers.py +2 -2
helpers.py
CHANGED
@@ -133,8 +133,8 @@ def remove_tables_from_docx(file_path):
|
|
133 |
|
134 |
def load_text_data(file_path):
|
135 |
"""Tải nội dung văn bản từ file DOCX (đã loại bảng)."""
|
136 |
-
cleaned_file = Document(file_path) #remove_tables_from_docx(file_path)
|
137 |
-
return DoclingLoader(
|
138 |
|
139 |
|
140 |
def extract_tables_from_docx(file_path):
|
|
|
133 |
|
134 |
def load_text_data(file_path):
|
135 |
"""Tải nội dung văn bản từ file DOCX (đã loại bảng)."""
|
136 |
+
# cleaned_file = Document(file_path) #remove_tables_from_docx(file_path)
|
137 |
+
return DoclingLoader(file_path).load()
|
138 |
|
139 |
|
140 |
def extract_tables_from_docx(file_path):
|