Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,12 +38,12 @@ def embedding_db():
|
|
38 |
|
39 |
def doc_preprocessing():
|
40 |
loader = DirectoryLoader(
|
41 |
-
'data/',
|
42 |
glob='**/*.pdf',
|
43 |
show_progress=True
|
44 |
-
)
|
45 |
-
)
|
46 |
docs = loader.load()
|
|
|
47 |
text_splitter = CharacterTextSplitter(
|
48 |
chunk_size=1000,
|
49 |
chunk_overlap=0
|
|
|
38 |
|
39 |
def doc_preprocessing():
|
40 |
loader = DirectoryLoader(
|
41 |
+
'data/',
|
42 |
glob='**/*.pdf',
|
43 |
show_progress=True
|
44 |
+
) # Extra closing parenthesis removed
|
|
|
45 |
docs = loader.load()
|
46 |
+
|
47 |
text_splitter = CharacterTextSplitter(
|
48 |
chunk_size=1000,
|
49 |
chunk_overlap=0
|