Spaces:
Runtime error
Runtime error
Update file_loader.py
Browse files- file_loader.py +3 -3
file_loader.py
CHANGED
|
@@ -30,9 +30,9 @@ def get_vectorstore():
|
|
| 30 |
|
| 31 |
print('Feeding .docx files')
|
| 32 |
for i, file_path in enumerate(tqdm(docx_files, desc="Đang xử lý", unit="file")):
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
print('Feeding .json files')
|
| 37 |
|
| 38 |
# Xử lý FAQ
|
|
|
|
| 30 |
|
| 31 |
print('Feeding .docx files')
|
| 32 |
for i, file_path in enumerate(tqdm(docx_files, desc="Đang xử lý", unit="file")):
|
| 33 |
+
output_json_path = f"output_{i}.json"
|
| 34 |
+
splits = get_splits(file_path, output_json_path)
|
| 35 |
+
all_splits += splits
|
| 36 |
print('Feeding .json files')
|
| 37 |
|
| 38 |
# Xử lý FAQ
|