Spaces:
Runtime error
Runtime error
Update auditqa/doc_process.py
Browse files- auditqa/doc_process.py +2 -3
auditqa/doc_process.py
CHANGED
@@ -19,9 +19,8 @@ def process_markdown():
|
|
19 |
docs = []
|
20 |
for file in files:
|
21 |
try:
|
22 |
-
|
23 |
-
|
24 |
-
docs.append(data[0])
|
25 |
except Exception as e:
|
26 |
print("Exception: ", e)
|
27 |
docs_processed = [markdown_splitter.split_text(doc) for doc in docs]
|
|
|
19 |
docs = []
|
20 |
for file in files:
|
21 |
try:
|
22 |
+
with open(file) as f:
|
23 |
+
docs.append(f.read())
|
|
|
24 |
except Exception as e:
|
25 |
print("Exception: ", e)
|
26 |
docs_processed = [markdown_splitter.split_text(doc) for doc in docs]
|