Spaces:
Runtime error
Runtime error
Update Sejarah.py
Browse files- Sejarah.py +1 -1
Sejarah.py
CHANGED
@@ -28,7 +28,7 @@ class Sejarah:
|
|
28 |
indexing_pipeline.add_node(component=preprocessor, name="PreProcessor", inputs=["TextConverter"])
|
29 |
indexing_pipeline.add_node(component=document_store, name="DocumentStore", inputs=["PreProcessor"])
|
30 |
|
31 |
-
dir = "
|
32 |
|
33 |
files_to_index = [dir+"/" + f for f in os.listdir(dir)]
|
34 |
indexing_pipeline.run_batch(file_paths=files_to_index)
|
|
|
28 |
indexing_pipeline.add_node(component=preprocessor, name="PreProcessor", inputs=["TextConverter"])
|
29 |
indexing_pipeline.add_node(component=document_store, name="DocumentStore", inputs=["PreProcessor"])
|
30 |
|
31 |
+
dir = "documents"
|
32 |
|
33 |
files_to_index = [dir+"/" + f for f in os.listdir(dir)]
|
34 |
indexing_pipeline.run_batch(file_paths=files_to_index)
|