Spaces:
Runtime error
Runtime error
leandroaraujodev
commited on
Commit
路
bdabef7
1
Parent(s):
cc48a34
Revert "Add the num_workers parameter to the load_data function to enable multiprocessing when loading documents. (#5)"
Browse files
app.py
CHANGED
@@ -383,14 +383,13 @@ else:
|
|
383 |
# Caso contr谩rio, apenas reutilizamos o que j谩 existe.
|
384 |
if "docstore" not in st.session_state:
|
385 |
# Carregar documentos do diret贸rio local
|
386 |
-
count_cores = os.cpu_count()
|
387 |
file_extractor = {".csv": CustomPandasCSVReader()}
|
388 |
documents = SimpleDirectoryReader(
|
389 |
input_dir=documents_path,
|
390 |
file_extractor=file_extractor,
|
391 |
filename_as_id=True,
|
392 |
recursive=True
|
393 |
-
).load_data(
|
394 |
|
395 |
documents = clean_documents(documents)
|
396 |
|
|
|
383 |
# Caso contr谩rio, apenas reutilizamos o que j谩 existe.
|
384 |
if "docstore" not in st.session_state:
|
385 |
# Carregar documentos do diret贸rio local
|
|
|
386 |
file_extractor = {".csv": CustomPandasCSVReader()}
|
387 |
documents = SimpleDirectoryReader(
|
388 |
input_dir=documents_path,
|
389 |
file_extractor=file_extractor,
|
390 |
filename_as_id=True,
|
391 |
recursive=True
|
392 |
+
).load_data()
|
393 |
|
394 |
documents = clean_documents(documents)
|
395 |
|