Spaces:
Runtime error
Runtime error
Update auditqa/doc_process.py
Browse files- auditqa/doc_process.py +3 -1
auditqa/doc_process.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import glob
|
|
|
2 |
from langchain_text_splitters import MarkdownHeaderTextSplitter
|
3 |
from langchain_community.document_loaders import UnstructuredMarkdownLoader
|
4 |
path_to_data = "/data/"
|
5 |
-
|
|
|
6 |
def process_markdown():
|
7 |
headers_to_split_on = [
|
8 |
("#", "Header 1"),
|
|
|
1 |
import glob
|
2 |
+
import os
|
3 |
from langchain_text_splitters import MarkdownHeaderTextSplitter
|
4 |
from langchain_community.document_loaders import UnstructuredMarkdownLoader
|
5 |
path_to_data = "/data/"
|
6 |
+
cwd = os.getcwd()
|
7 |
+
print(cwd)
|
8 |
def process_markdown():
|
9 |
headers_to_split_on = [
|
10 |
("#", "Header 1"),
|