Nikhil0987 commited on
Commit
c1b78a4
·
verified ·
1 Parent(s): 2c66137

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -38,12 +38,12 @@ def embedding_db():
38
 
39
  def doc_preprocessing():
40
  loader = DirectoryLoader(
41
- 'data/', # Assuming the 'data' folder is in the same directory
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