Spaces:
Runtime error
Runtime error
Update file_loader.py
Browse files- file_loader.py +3 -3
file_loader.py
CHANGED
@@ -18,10 +18,10 @@ import json
|
|
18 |
|
19 |
def get_vectorstore():
|
20 |
### Xử lý tất cả các tài liệu và nhét vào database
|
21 |
-
folder_path = "syllabus_nct_word_format/"
|
22 |
#"syllabus_nct_word_format/"
|
23 |
#'syllabus_nct_word_format/Trường Công nghệ/debug'
|
24 |
-
|
25 |
#
|
26 |
docx_files = list_docx_files(folder_path)
|
27 |
|
@@ -38,7 +38,7 @@ def get_vectorstore():
|
|
38 |
|
39 |
error_files = [] # List to store files that caused errors
|
40 |
for i, file_path in enumerate(tqdm(docx_files, desc="Đang xử lý", unit="file")):
|
41 |
-
print(f'Reading {file_path}')
|
42 |
output_json_path = f"output_{i}.json"
|
43 |
|
44 |
try:
|
|
|
18 |
|
19 |
def get_vectorstore():
|
20 |
### Xử lý tất cả các tài liệu và nhét vào database
|
21 |
+
folder_path = #"syllabus_nct_word_format/"
|
22 |
#"syllabus_nct_word_format/"
|
23 |
#'syllabus_nct_word_format/Trường Công nghệ/debug'
|
24 |
+
'syllabus_nct_word_format/Trường Công nghệ/Chương trình An toàn thông tin'
|
25 |
#
|
26 |
docx_files = list_docx_files(folder_path)
|
27 |
|
|
|
38 |
|
39 |
error_files = [] # List to store files that caused errors
|
40 |
for i, file_path in enumerate(tqdm(docx_files, desc="Đang xử lý", unit="file")):
|
41 |
+
# print(f'Reading {file_path}')
|
42 |
output_json_path = f"output_{i}.json"
|
43 |
|
44 |
try:
|