Update utils.py
Browse files
utils.py
CHANGED
@@ -290,7 +290,7 @@ def create_directory_loader(file_type, directory_path):
|
|
290 |
|
291 |
|
292 |
class CustomLoader:
|
293 |
-
|
294 |
def __init__(self, directory_path, file_type, loader_func):
|
295 |
self.directory_path = directory_path
|
296 |
self.file_type = file_type
|
@@ -306,7 +306,7 @@ def create_directory_loader(file_type, directory_path):
|
|
306 |
return documents
|
307 |
|
308 |
return CustomLoader(directory_path, file_type, loaders[file_type])
|
309 |
-
|
310 |
def __init__(self, directory_path, file_type, loader_func):
|
311 |
self.directory_path = directory_path
|
312 |
self.file_type = file_type
|
|
|
290 |
|
291 |
|
292 |
class CustomLoader:
|
293 |
+
"""
|
294 |
def __init__(self, directory_path, file_type, loader_func):
|
295 |
self.directory_path = directory_path
|
296 |
self.file_type = file_type
|
|
|
306 |
return documents
|
307 |
|
308 |
return CustomLoader(directory_path, file_type, loaders[file_type])
|
309 |
+
"""
|
310 |
def __init__(self, directory_path, file_type, loader_func):
|
311 |
self.directory_path = directory_path
|
312 |
self.file_type = file_type
|